Commit Diff
--- 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();