edox: Fix missing return value (at previously unreachable function exit)

This commit is contained in:
Kim Woelders 2020-04-30 20:21:07 +02:00
parent 893ccb4bce
commit 7d7ec4add2
2 changed files with 5 additions and 11 deletions

View File

@ -1,6 +1,6 @@
/*
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
* Copyright (C) 2007-2011 Kim Woelders
* Copyright (C) 2007-2020 Kim Woelders
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
@ -96,7 +96,7 @@ void freestrlist(char **l, int num);
void word(char *s, int num, char *wd);
/* format.c */
int GetObjects(FILE * f);
void GetObjects(FILE * f);
int FixPage(int p);
int GetPage(char *name);
void GetLinkColors(int page_num, int *r, int *g, int *b);

View File

@ -392,7 +392,7 @@ GetTextUntilTag(void)
return NULL;
}
int
void
GetObjects(FILE * f)
{
static char have_font = 0;
@ -476,19 +476,13 @@ GetObjects(FILE * f)
else
{
if (!GetNextTag(&obj))
{
Efree(fdat);
return 0;
}
break;
}
}
else
{
if (!GetNextTag(&obj))
{
Efree(fdat);
return 0;
}
break;
}
if (obj.type == PAGE)
{