diff options
Diffstat (limited to 'riscos')
-rw-r--r-- | riscos/font.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/riscos/font.c b/riscos/font.c index 0fea4b542..5a55d28b2 100644 --- a/riscos/font.c +++ b/riscos/font.c @@ -130,12 +130,9 @@ const char *enumerate_fonts(struct font_set* set, int *handle) { int i; - assert(set); - - if (*handle < 0 || handle == 0) { /* a bit of sanity checking */ - *handle = -1; - return NULL; - } + assert(set); + assert(handle); + assert(0 <= *handle && *handle <= FONT_FAMILIES * FONT_FACES); for (i = *handle; i!=FONT_FAMILIES*FONT_FACES && set->font[i]==0; i++) ; /* find next font in use */ |