]> git.neil.brown.name Git - wiggle.git/commitdiff
extract.c: (split_merge): initialize with NULL
authorJari Aalto <jari.aalto@cante.net>
Thu, 4 Mar 2010 08:55:37 +0000 (10:55 +0200)
committerNeil Brown <neilb@suse.de>
Fri, 19 Mar 2010 04:37:23 +0000 (15:37 +1100)
Signed-off-by: Jari Aalto <jari.aalto@cante.net>
Signed-off-by: Neil Brown <neilb@suse.de>
extract.c

index f901617c4be7cd65d747ea69dc4fa361bb377173..2a991e035980fa4a41e4e31a73397e3a0e1e35ee 100644 (file)
--- a/extract.c
+++ b/extract.c
@@ -200,7 +200,8 @@ int split_merge(struct stream f, struct stream *f1, struct stream *f2, struct st
        int state = 0;
        char *cp, *end;
        struct stream r1,r2,r3;
-       f1->body = f2->body = f2->body = NULL;
+       f1->body = NULL;
+       f2->body = NULL;
 
        r1.body = malloc(f.len);
        r2.body = malloc(f.len);