X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=apply.c;h=e87190ea3868f1379d557226e4779c36546ffe3e;hb=2d56993347eac4e4f91c0539ff3c5f05fd777495;hp=3ebbf6b1dcbd52d700c5d0e53cad4c3951cf1979;hpb=e70a165d3db26dbab62e3430553a21d5e97b74ec;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)