mmsg: fix -o flag causing subsequent flags to be ignored when used with -g

This commit is contained in:
quadratic 2026-03-22 19:50:30 +01:00 committed by DreamMaoMao
parent 74973c6f24
commit 1f1993638e

View file

@ -569,12 +569,12 @@ int32_t main(int32_t argc, char *argv[]) {
mode = WATCH;
break;
case 'o':
if (mode == SET)
if (mode == GET || mode == WATCH)
oflag = 1;
else if (mode == SET)
output_name = EARGF(usage());
else
output_name = ARGF();
if (!output_name)
oflag = 1;
break;
case 't':
tflag = 1;