From bd88ab61519ca607e7457f554ba4b3e8938e3ded Mon Sep 17 00:00:00 2001 From: nhmall Date: Mon, 27 Jan 2020 17:54:13 -0500 Subject: [PATCH] msdos follow-up bit --- src/options.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/options.c b/src/options.c index 1af0e9d2b..504977dd7 100644 --- a/src/options.c +++ b/src/options.c @@ -3377,9 +3377,11 @@ boolean tinitial, tfrom_file; bad_negation(fullname, FALSE); return FALSE; } - op = string_for_opt(opts, negated); - iflags.wc_video_width = strtol(op, NULL, 10); - return FALSE; + if ((op = string_for_opt(opts, negated)) != empty_optstr) + iflags.wc_video_width = strtol(op, NULL, 10); + else + return FALSE; + return retval; } fullname = "video_height"; if (match_optname(opts, fullname, 7, TRUE)) { @@ -3389,9 +3391,11 @@ boolean tinitial, tfrom_file; bad_negation(fullname, FALSE); return FALSE; } - op = string_for_opt(opts, negated); - iflags.wc_video_height = strtol(op, NULL, 10); - return FALSE; + if ((op = string_for_opt(opts, negated)) != empty_optstr) + iflags.wc_video_height = strtol(op, NULL, 10); + else + return FALSE; + return retval; } #ifdef NO_TERMS /* video:string -- must be after longer tests */ -- 2.50.1