summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-11-27 23:48:38 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-11-27 23:48:38 +0100
commit7e7243143f0bebbe6b851dcf713791d9703c4f0a (patch)
tree1c27d9c2849338dbf0c64134b110719481a00b62
parentaf19cbb098d6c8c1bea311b628ccb5f1ce897828 (diff)
Initialize time and file position to 0.stateful-pg
-rw-r--r--parsing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parsing.c b/parsing.c
index c57a242..56922b1 100644
--- a/parsing.c
+++ b/parsing.c
@@ -370,8 +370,8 @@ void process() {
} else
printf("\tParsing %s\n", file->path);
- long pos;
- time_t time;
+ long pos = 0;
+ time_t time = 0;
pg_channel_file_get(channel_id, file, &pos, &time);
fseek(f, pos, SEEK_SET);
localtime_r(&time, &now_global);