Exit value 1 instead of a random non-zero value.
This commit is contained in:
parent
bdbb710060
commit
09b5a3c020
1 changed files with 1 additions and 1 deletions
|
@ -1606,7 +1606,7 @@ static int cmd_config(int argc, char *argv[]) {
|
|||
if(action < 0 && !removed) {
|
||||
remove(tmpfile);
|
||||
fprintf(stderr, "No configuration variables deleted.\n");
|
||||
return *value;
|
||||
return *value != 0;
|
||||
}
|
||||
|
||||
// Replace the configuration file with the new one
|
||||
|
|
Loading…
Reference in a new issue