index 3ebbf6b1dcbd52d700c5d0e53cad4c3951cf1979..e87190ea3868f1379d557226e4779c36546ffe3e 100644 (file)
--- a/apply.c
+++ b/apply.c
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)