mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-16 23:50:41 +01:00
fix cosmetic coverity leak report (CID 207601)
While in theory this is a leak, in practice it's extremely unlikely and irrelevant. Nevertheless, let's fix it ;-)
This commit is contained in:
parent
d63ed4df54
commit
32c5ade046
@ -1428,6 +1428,12 @@ initAll(int argc, char **argv)
|
||||
iConfigVerify = (arg == NULL) ? 0 : atoi(arg);
|
||||
break;
|
||||
case 'o':
|
||||
if(fp_rs_full_conf_output != NULL) {
|
||||
fprintf(stderr, "warning: -o option given multiple times. Now "
|
||||
"using value %s\n", (arg == NULL) ? "-" : arg);
|
||||
fclose(fp_rs_full_conf_output);
|
||||
fp_rs_full_conf_output = NULL;
|
||||
}
|
||||
if(arg == NULL || !strcmp(arg, "-")) {
|
||||
fp_rs_full_conf_output = stdout;
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user