about summary refs log tree commit diff
path: root/stdio-common
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/tmpnam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio-common/tmpnam.c b/stdio-common/tmpnam.c
index fc30026648..e1e11aea17 100644
--- a/stdio-common/tmpnam.c
+++ b/stdio-common/tmpnam.c
@@ -30,7 +30,7 @@ tmpnam (char *s)
   /* By using two buffers we manage to be thread safe in the case
      where S != NULL.  */
   char tmpbufmem[L_tmpnam];
-  char tmpbuf = s ?: tmpbufmem;
+  char *tmpbuf = s ?: tmpbufmem;
 
   /* In the following call we use the buffer pointed to by S if
      non-NULL although we don't know the size.  But we limit the size