commit c80a2e6597f8d0d1008532a2df3aa135ccbca96a from: Florian Obser via: Thomas Adam date: Thu Jul 21 08:32:00 2022 UTC Dot not ignore error from got_object_id_str(). Found by llvm's scan-build (dead store). OK stsp commit - 9e39ca77238c1ce717f8ccb3c0ffc8e229cd1850 commit + c80a2e6597f8d0d1008532a2df3aa135ccbca96a blob - 8970a56a2f24ddeb5904c35439d88ca65dac1733 blob + f08817f49f0d99dacb040fde577b5148f600f223 --- got/got.c +++ got/got.c @@ -10312,6 +10312,8 @@ cmd_rebase(int argc, char *argv[]) if (error) goto done; error = got_object_id_str(&id_str, new_head_commit_id); + if (error) + goto done; printf("Forwarding %s to commit %s\n", got_ref_get_name(branch), id_str); free(id_str);