Commit Diff
- Commit:
5a810f318bdf6918a86fe0ce770d2eda026e6932
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
- Message:
- add default case to the switch statement in choose_patch() Just in case the code futher up gets tweaked again such that the validity check using strchr() will be skipped in some edge case. Lucas agrees
- Actions:
- Patch | Tree
--- got/got.c +++ got/got.c @@ -8703,6 +8703,10 @@ choose_patch(int *choice, void *arg, unsigned char sta if (status == GOT_STATUS_MODIFY) *choice = GOT_PATCH_CHOICE_QUIT; break; + default: + printf("invalid response '%s'\n", line); + free(line); + return NULL; } if (!interactive)