Commit Diff


commit - 44edeea70974954a349be90dbdc3438056aed7df
commit + 45d610198c7c185afea2660a4cf6b1b6ab9d03c3
blob - d91685453b7b9e874b25a60e0bcf1652eecc51f8
blob + 222b6b18eb6dbcbfad33963d2378db3d9d3c5445
--- lib/object_create.c
+++ lib/object_create.c
@@ -81,6 +81,7 @@ got_object_blob_create(struct got_object_id **id, stru
 		err = got_error_from_errno();
 		goto done;
 	}
+	fd = -1;
 
 	err = got_opentemp_named(&blobpath, &blobfile, "/tmp/got-blob-create");
 	if (err)