]> wimlib.net Git - wimlib/blobdiff - src/wim.c
Use WIM_LINK_TYPE_NONE as default, as documented
[wimlib] / src / wim.c
index 2f008f8f44cd6f849c03d642debdd5cabd5e996f..99a8c70072e89c1f1a6b563bc88ba229f09ed7cf 100644 (file)
--- a/src/wim.c
+++ b/src/wim.c
@@ -53,8 +53,8 @@ WIMStruct *new_wim_struct()
        w = CALLOC(1, sizeof(WIMStruct));
        if (!w)
                return NULL;
-       w->link_type      = WIM_LINK_TYPE_HARD;
-       w->current_image  = WIM_NO_IMAGE;
+       w->link_type     = WIM_LINK_TYPE_NONE;
+       w->current_image = WIM_NO_IMAGE;
        return w;
 }
 
@@ -66,7 +66,7 @@ WIMStruct *new_wim_struct()
  */
 int for_image(WIMStruct *w, int image, int (*visitor)(WIMStruct *))
 {
-       int ret;
+       int ret = 0;
        int i;
        int image_count;