git-submodule.sh: accept verbose flag in cmd_update to be non-quiet
[gitweb.git] / builtin / fsck.c
index cb2ba6cd1be46635ca8416a7d3f2b006f964190b..3a2c27f2413e5e377926e0e7df339549c37a76b3 100644 (file)
@@ -280,8 +280,7 @@ static void check_unreachable_object(struct object *obj)
                                free(filename);
                                return;
                        }
-                       if (!(f = fopen(filename, "w")))
-                               die_errno("Could not open '%s'", filename);
+                       f = xfopen(filename, "w");
                        if (obj->type == OBJ_BLOB) {
                                if (stream_blob_to_fd(fileno(f), &obj->oid, NULL, 1))
                                        die_errno("Could not write '%s'", filename);