]> git.ipfire.org Git - thirdparty/git.git/blobdiff - apply.c
Fix ?: statements.
[thirdparty/git.git] / apply.c
diff --git a/apply.c b/apply.c
index 7c1a8411f21ee42d095e6c5a515987ef2a6f779a..ee59be643eb5f95ed021921b1b76d37135cab5ac 100644 (file)
--- 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)