unix_capture_directory(): Add missing ret=0
authorEric Biggers <ebiggers3@gmail.com>
Thu, 25 Apr 2013 03:49:54 +0000 (22:49 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Thu, 25 Apr 2013 03:49:54 +0000 (22:49 -0500)
src/add_image.c

index 3b498c1..8972105 100644 (file)
@@ -146,6 +146,7 @@ unix_capture_directory(struct wim_dentry *dir_dentry,
        }
 
        /* Recurse on directory contents */
        }
 
        /* Recurse on directory contents */
+       ret = 0;
        for (;;) {
                errno = 0;
                entry = readdir(dir);
        for (;;) {
                errno = 0;
                entry = readdir(dir);