]> git.cameronkatri.com Git - cgit.git/commit
scan-tree: remove useless strdup()
authorJohn Keeping <john@keeping.me.uk>
Thu, 8 Oct 2015 22:23:57 +0000 (23:23 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 9 Oct 2015 08:54:30 +0000 (10:54 +0200)
commit687cdf69689edcaff8e9035af93baf1a9e71cf32
tree1bacbdc963a38cd0befc9ddf7e4ed8d98d974fa8
parent94182d6031df0d956a94ecd7ece233e345468961
scan-tree: remove useless strdup()

parse_configfile() takes a "const char *" and doesn't hold any
references to it after it returns; there is no reason to pass it a
duplicate.

Coverity-id: 13941
Signed-off-by: John Keeping <john@keeping.me.uk>
scan-tree.c