commit 41d2888bab776a1275b697b9eb293b81045bfee7 from: Stefan Sperling date: Sun Aug 11 18:03:36 2019 UTC move an assignment closer to error check in got_object_get_path() commit - b15816dd9e35575606d011dad4a3dcac204340da commit + 41d2888bab776a1275b697b9eb293b81045bfee7 blob - 60a273ea713af45d42943ac3274ba6081c775576 blob + d247b0992efbf07b2fd9eef08e34004c0ae0fbc3 --- lib/object.c +++ lib/object.c @@ -114,10 +114,11 @@ got_object_get_path(char **path, struct got_object_id { const struct got_error *err = NULL; char *hex = NULL; - char *path_objects = got_repo_get_path_objects(repo); + char *path_objects; *path = NULL; + path_objects = got_repo_get_path_objects(repo); if (path_objects == NULL) return got_error_from_errno("got_repo_get_path_objects");