Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rs/strbuf-detach'
[gitweb.git]
/
builtin
/
grep.c
diff --git
a/builtin/grep.c
b/builtin/grep.c
index 2699001fbd6dfe07f0338ee478454ec2b7325559..69ac053acc16be6b12e0743dfabf8a481e1f92cb 100644
(file)
--- a/
builtin/grep.c
+++ b/
builtin/grep.c
@@
-1110,8
+1110,8
@@
int cmd_grep(int argc, const char **argv, const char *prefix)
strbuf_addf(&buf, "+/%s%s",
strcmp("less", pager) ? "" : "*",
opt.pattern_list->pattern);
- string_list_append(&path_list,
buf.buf);
-
strbuf_detach(&buf, NULL
);
+ string_list_append(&path_list,
+
strbuf_detach(&buf, NULL)
);
}
}