rewrite some code to avoid gcc 4.8 complaining

This commit is contained in:
tg
2012-10-03 16:16:15 +00:00
parent b55d9870e3
commit c39bfe09ee
3 changed files with 18 additions and 10 deletions

View File

@ -38,7 +38,7 @@
#endif
#endif
__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.224 2012/10/03 15:13:31 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.225 2012/10/03 16:16:12 tg Exp $");
#if HAVE_KILLPG
/*
@ -976,7 +976,9 @@ c_typeset_vardump(struct tbl *vp, uint32_t flag, int thing, bool pflag,
* Only report first 'element' of an array with
* no set elements.
*/
} while (any_set && (vp = vp->u.array));
if (!any_set)
return;
} while ((vp = vp->u.array));
}
int