diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-09-27 03:24:39 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-09-27 03:25:10 +0200 |
commit | 858209c51f3c5eadd5489edc3154d84f24e1f00a (patch) | |
tree | 599506ad659c9085c16df5a9ff18f58cc4a57be0 /src | |
parent | 1a34d367d1afe57386779ca46b18933ab7c189cf (diff) |
readahead: properly initialize variable
Diffstat (limited to 'src')
-rw-r--r-- | src/readahead-collect.c | 2 | ||||
-rw-r--r-- | src/readahead-replay.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/readahead-collect.c b/src/readahead-collect.c index 3b03b64c40..50c1a0b684 100644 --- a/src/readahead-collect.c +++ b/src/readahead-collect.c @@ -200,7 +200,7 @@ static int qsort_compare(const void *a, const void *b) { static int collect(const char *root) { enum { - FD_FANOTIFY, /* Get the actualy fs events */ + FD_FANOTIFY, /* Get the actual fs events */ FD_SIGNAL, FD_INOTIFY, /* We get notifications to quit early via this fd */ _FD_MAX diff --git a/src/readahead-replay.c b/src/readahead-replay.c index 32941c144d..f0710e5ddf 100644 --- a/src/readahead-replay.c +++ b/src/readahead-replay.c @@ -114,7 +114,7 @@ finish: } static int replay(const char *root) { - FILE *pack; + FILE *pack = NULL; char line[LINE_MAX]; int r = 0; char *pack_fn = NULL, c; |