X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=apply.c;h=e87190ea3868f1379d557226e4779c36546ffe3e;hb=8c1f5f0f1f9c36ef5465512753efeff36758ba7d;hp=3ebbf6b1dcbd52d700c5d0e53cad4c3951cf1979;hpb=933693da77857b12ba86d999a601dbdb8ab212ff;p=git.git diff --git a/apply.c b/apply.c index 3ebbf6b1..e87190ea 100644 --- a/apply.c +++ b/apply.c @@ -1377,7 +1377,7 @@ static struct excludes { static int use_patch(struct patch *p) { - const char *pathname = p->new_name ? : p->old_name; + const char *pathname = p->new_name ? p->new_name : p->old_name; struct excludes *x = excludes; while (x) { if (fnmatch(x->path, pathname, 0) == 0)