commit c9917e65d9995cc47cf892e092d7344f52675579 from: Florian Obser date: Thu Jul 21 05:40:41 2022 UTC Dot not ignore error from got_object_id_str(). Found by llvm's scan-build (dead store). OK stsp commit - 3c29341b5d4937ebdd1af08c9dc1dbd9169a6200 commit + c9917e65d9995cc47cf892e092d7344f52675579 blob - 34f6db81edda3318d140a359f85fce30ea5fc4a7 blob + c32dc030ca5a55f45b8426657e65e9c079640391 --- 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);