Corrected two instances of missing values on return from a function.

This commit is contained in:
Tim Edwards 2018-11-19 08:12:12 -05:00
parent f9cc4d3db6
commit ef914e8d46
1 changed files with 2 additions and 3 deletions

View File

@ -2489,8 +2489,7 @@ int ConvertStringToInteger(char *string, int *ival)
*ival = (int)lval;
return 1;
}
else if (eptr == string)
return 0; /* No conversion */
else return 0; /* No conversion */
}
/*--------------------------------------------------------------*/
@ -3063,7 +3062,7 @@ int remove_group_tags(struct objlist *ob)
for (nob = ob->next; nob && nob->type != FIRSTPIN; nob = nob->next)
if (nob->type == PROPERTY)
break;
if (nob->type != PROPERTY) return; // shouldn't happen
if (nob->type != PROPERTY) return 0; // shouldn't happen
for (sob = NULL; nob && nob->type == PROPERTY; nob = nob->next) {
for (i = 0; ; i++) {