X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fapply.c;h=771c972c5506db4848e2c214fb617525bafdf335;hb=c4df50c2d8afed81e4c3170f51eff1d11dea1d94;hp=7ca90472c10eed8535e76b1e0ec25c92af7cff05;hpb=8479c68799877eddd93622346f63df8e641ed632;p=git.git diff --git a/builtin/apply.c b/builtin/apply.c index 7ca90472c..771c972c5 100644 --- a/builtin/apply.c +++ b/builtin/apply.c @@ -2824,11 +2824,8 @@ static int check_preimage(struct patch *patch, struct cache_entry **ce, struct s if (stat_ret < 0) { struct checkout costate; /* checkout */ + memset(&costate, 0, sizeof(costate)); costate.base_dir = ""; - costate.base_dir_len = 0; - costate.force = 0; - costate.quiet = 0; - costate.not_new = 0; costate.refresh_cache = 1; if (checkout_entry(*ce, &costate, NULL) || lstat(old_name, st))