From: Andre Noll Date: Sat, 3 Jan 2015 16:08:00 +0000 (+0000) Subject: str.c: Remove pointless initialization. X-Git-Tag: v0.1.6~12 X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=commitdiff_plain;h=7a76b2d90f4a4908bd4d15adef5b24ee083ab8a2 str.c: Remove pointless initialization. The variable p is initialized to a different value a few lines later and the value set in the definition is not used in between. Found by cppcheck. --- diff --git a/str.c b/str.c index d6c768d..df706ef 100644 --- a/str.c +++ b/str.c @@ -242,7 +242,7 @@ __must_check __malloc char *dss_logname(void) */ unsigned split_args(char *args, char *** const argv_ptr, const char *delim) { - char *p = args; + char *p; char **argv; size_t n = 0, i, j;