commit e6b1056ef3e2060a93683e3069bbc1bb48c40e87 from: Stefan Sperling date: Sun Apr 22 11:21:17 2018 UTC initialize output parameter in object_path() commit - d80ab12bffd45bd36e2f4baa20483e0e31a201b5 commit + e6b1056ef3e2060a93683e3069bbc1bb48c40e87 blob - 47ed4b5ba38c568f77882ab7bc2cabc23917edc3 blob + 76455bbdd7ca3d4884e66ff542a70b2d39bb3aae --- lib/object.c +++ lib/object.c @@ -214,6 +214,8 @@ object_path(char **path, struct got_object_id *id, str const struct got_error *err = NULL; char *hex; char *path_objects = got_repo_get_path_objects(repo); + + *path = NULL; if (path_objects == NULL) return got_error_from_errno();