summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;