Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
imap-send: use skip_prefix instead of using magic numbers
author
Tanay Abhra
<tanayabh@gmail.com>
Thu, 19 Jun 2014 05:22:46 +0000
(
05:22
+0000)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 20 Jun 2014 17:45:19 +0000
(10:45 -0700)
Signed-off-by: Tanay Abhra <tanayabh@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
imap-send.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
de8118e
)
diff --git
a/imap-send.c
b/imap-send.c
index 83a6ed2ac338d7fc82f3bed6fcb93ffe8dae5739..524fbabc96f450f1faed196c1743d2f8d697b587 100644
(file)
--- a/
imap-send.c
+++ b/
imap-send.c
@@
-1328,13
+1328,9
@@
static char *imap_folder;
static int git_imap_config(const char *key, const char *val, void *cb)
{
- char imap_key[] = "imap.";
-
- if (strncmp(key, imap_key, sizeof imap_key - 1))
+ if (!skip_prefix(key, "imap.", &key))
return 0;
- key += sizeof imap_key - 1;
-
/* check booleans first, and barf on others */
if (!strcmp("sslverify", key))
server.ssl_verify = git_config_bool(key, val);