summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-09-27 03:24:39 +0200
committerLennart Poettering <lennart@poettering.net>2010-09-27 03:25:10 +0200
commit858209c51f3c5eadd5489edc3154d84f24e1f00a (patch)
tree599506ad659c9085c16df5a9ff18f58cc4a57be0 /src
parent1a34d367d1afe57386779ca46b18933ab7c189cf (diff)
readahead: properly initialize variable
Diffstat (limited to 'src')
-rw-r--r--src/readahead-collect.c2
-rw-r--r--src/readahead-replay.c2
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;