mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-11 10:03:49 +00:00
Fix cppcheck warning: The scope of the variable X can be reduced.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user