summaryrefslogtreecommitdiff
path: root/builtin/apply.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-10-14 17:50:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-10-14 17:50:07 (GMT)
commit145c590df8131abe510adde677eb3121cf52d31e (patch)
tree1bec212671aca326a5f966df97e159bc25ccdb79 /builtin/apply.c
parent63434da0b4966894b5b812965cb3ada3d4101d6c (diff)
parente3f1da982e4f14e7146964cb25a5011a3f41e84a (diff)
downloadgit-145c590df8131abe510adde677eb3121cf52d31e.zip
git-145c590df8131abe510adde677eb3121cf52d31e.tar.gz
git-145c590df8131abe510adde677eb3121cf52d31e.tar.bz2
Merge branch 'rs/more-uses-of-skip-prefix'
* rs/more-uses-of-skip-prefix: use skip_prefix() to avoid more magic numbers
Diffstat (limited to 'builtin/apply.c')
-rw-r--r--builtin/apply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/apply.c b/builtin/apply.c
index 69efb0e..6696ea4 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -436,7 +436,7 @@ static unsigned long linelen(const char *buffer, unsigned long size)
static int is_dev_null(const char *str)
{
- return !memcmp("/dev/null", str, 9) && isspace(str[9]);
+ return skip_prefix(str, "/dev/null", &str) && isspace(*str);
}
#define TERM_SPACE 1