Cleanup patch from Denis Vlasenko. Mostly variants of removing the if(x)
from before "if(x) free(x)".
This commit is contained in:
@@ -556,10 +556,8 @@ static void add_cmd(char *cmdstr)
|
||||
}
|
||||
|
||||
/* If we glued multiple lines together, free the memory. */
|
||||
if(add_cmd_line) {
|
||||
free(add_cmd_line);
|
||||
add_cmd_line=NULL;
|
||||
}
|
||||
free(add_cmd_line);
|
||||
add_cmd_line=NULL;
|
||||
}
|
||||
|
||||
/* Append to a string, reallocating memory as necessary. */
|
||||
|
||||
Reference in New Issue
Block a user