X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=builtin%2Fremote.c;h=0a52667e0f7cc14d3a760bf0ec5f6857a0ce9051;hb=632d3f4b5b80700c6c7c3637d6a4d1d9a457f7e1;hp=4745957b9602ed9fe5c983de35ad74cc85e9b537;hpb=b43688a5bc2eaa8a5805856fc11dc3cd60e6e6ac;p=git.git diff --git a/builtin/remote.c b/builtin/remote.c index 4745957b9..0a52667e0 100644 --- a/builtin/remote.c +++ b/builtin/remote.c @@ -348,7 +348,7 @@ struct push_info { PUSH_STATUS_UPTODATE, PUSH_STATUS_FASTFORWARD, PUSH_STATUS_OUTOFDATE, - PUSH_STATUS_NOTQUERIED, + PUSH_STATUS_NOTQUERIED } status; }; @@ -736,11 +736,14 @@ static int rm(int argc, const char **argv) struct known_remotes known_remotes = { NULL, NULL }; struct string_list branches = { NULL, 0, 0, 1 }; struct string_list skipped = { NULL, 0, 0, 1 }; - struct branches_for_remote cb_data = { - NULL, &branches, &skipped, &known_remotes - }; + struct branches_for_remote cb_data; int i, result; + memset(&cb_data, 0, sizeof(cb_data)); + cb_data.branches = &branches; + cb_data.skipped = &skipped; + cb_data.keep = &known_remotes; + if (argc != 2) usage_with_options(builtin_remote_rm_usage, options);