diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-10-14 21:50:07 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-10-14 21:50:07 +0400 |
commit | 145c590df8131abe510adde677eb3121cf52d31e (patch) | |
tree | 1bec212671aca326a5f966df97e159bc25ccdb79 /builtin/apply.c | |
parent | 63434da0b4966894b5b812965cb3ada3d4101d6c (diff) | |
parent | e3f1da982e4f14e7146964cb25a5011a3f41e84a (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/apply.c b/builtin/apply.c index 69efb0e4df..6696ea4c3f 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 |