fixed wrong error handling in bin/mani.c

This commit is contained in:
2020-03-04 09:25:17 +00:00
parent 2ce27360d5
commit 916da0fd59
2 changed files with 67 additions and 1 deletions

View File

@ -381,7 +381,7 @@ static int apply_fs_and_gvs_to_rtx (hawk_rtx_t* rtx, arg_t* arg)
/* compose a string value to use to set FS to */
fs = hawk_rtx_makestrvalwithbcstr(rtx, arg->fs);
if (fs) return -1;
if (!fs) return -1;
/* change FS according to the command line argument */
hawk_rtx_refupval (rtx, fs);