summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-02-26 22:13:19 +0100
committerPeter S. Mazinger <ps.m@gmx.net>2011-03-03 18:22:50 +0100
commit370e40a5d94efb44d6b8adbca6fcaa1262793f0b (patch)
tree98f612935591714986da4f076a29838e09ea0f23 /libc
parent2e9d2266c0cea250f7a87dc6aa2b02d0bd5a0aea (diff)
initialize 2 variables to get rid of compiler warning
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/time/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/time/time.c b/libc/misc/time/time.c
index ff44892a8..096c3b6b4 100644
--- a/libc/misc/time/time.c
+++ b/libc/misc/time/time.c
@@ -1013,7 +1013,7 @@ size_t __XL_NPP(strftime)(char *__restrict s, size_t maxsize,
const char *stack[MAX_PUSH];
size_t count;
size_t o_count;
- int field_val, i, j, lvl;
+ int field_val = 0, i = 0, j, lvl;
int x[3]; /* wday, yday, year */
int isofm, days;
char buf[__UIM_BUFLEN_LONG];