about summary refs log tree commit diff
path: root/Src/builtin.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2002-03-24 07:56:42 +0000
committerWayne Davison <wayned@users.sourceforge.net>2002-03-24 07:56:42 +0000
commit18b090df5a50847ae050488493b79b143041dcfe (patch)
tree60626fde1fadc016241137a454451bebb1c5737f /Src/builtin.c
parent9763da46c81b921cd82c3d145c1777ca5320050e (diff)
downloadzsh-18b090df5a50847ae050488493b79b143041dcfe.tar.gz
zsh-18b090df5a50847ae050488493b79b143041dcfe.tar.xz
zsh-18b090df5a50847ae050488493b79b143041dcfe.zip
Got rid of unused-variable compiler warning.
Diffstat (limited to 'Src/builtin.c')
-rw-r--r--Src/builtin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index 372dcf8f4..18e95da24 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -2912,7 +2912,7 @@ bin_print(char *name, char **args, char *ops, int func)
     int flen, width, prec, type, argc, n, narg;
     int nnl = 0, ret = 0, maxarg = 0;
     int flags[5], *len;
-    char *start, *endptr, *c, *d, *flag, *buf, *tmpf, spec[11], *fmt = NULL;
+    char *start, *endptr, *c, *d, *flag, *buf, spec[11], *fmt = NULL;
     char **first, *curarg, *flagch = "0+- #", save = '\0', nullstr = '\0';
     size_t rcount, mcount, count = 0;
     FILE *fout = stdout;
@@ -3123,7 +3123,7 @@ bin_print(char *name, char **args, char *ops, int func)
     	if ((fout = open_memstream(&buf, &mcount)) == NULL)
 	    zwarnnam(name, "open_memstream failed", NULL, 0);
 #else
-	tmpf = gettempname();
+	char *tmpf = gettempname();
     	if ((fout = fopen(tmpf, "w+")) == NULL)
 	    zwarnnam(name, "can't open temp file: %e", NULL, errno);
 	unlink(tmpf);