Fix cppcheck warning: The scope of the variable X can be reduced.
This commit is contained in:
parent
fc144fe389
commit
9cb9e0e6da
5 changed files with 5 additions and 7 deletions
|
|
@ -120,10 +120,10 @@ int main(int argc, const char *argv[])
|
|||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
char *cmd;
|
||||
const char *prompt = "> ";
|
||||
while (1) {
|
||||
int offset = 0;
|
||||
char *cmd;
|
||||
#if defined(HAVE_READLINE)
|
||||
if (input == NULL) { // means we use stdin
|
||||
cmd = readline(prompt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue