edox: Fix missing return value (at previously unreachable function exit)
This commit is contained in:
parent
893ccb4bce
commit
7d7ec4add2
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
|
* 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
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to
|
* 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);
|
void word(char *s, int num, char *wd);
|
||||||
|
|
||||||
/* format.c */
|
/* format.c */
|
||||||
int GetObjects(FILE * f);
|
void GetObjects(FILE * f);
|
||||||
int FixPage(int p);
|
int FixPage(int p);
|
||||||
int GetPage(char *name);
|
int GetPage(char *name);
|
||||||
void GetLinkColors(int page_num, int *r, int *g, int *b);
|
void GetLinkColors(int page_num, int *r, int *g, int *b);
|
||||||
|
|
12
dox/format.c
12
dox/format.c
|
@ -392,7 +392,7 @@ GetTextUntilTag(void)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
void
|
||||||
GetObjects(FILE * f)
|
GetObjects(FILE * f)
|
||||||
{
|
{
|
||||||
static char have_font = 0;
|
static char have_font = 0;
|
||||||
|
@ -476,19 +476,13 @@ GetObjects(FILE * f)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!GetNextTag(&obj))
|
if (!GetNextTag(&obj))
|
||||||
{
|
break;
|
||||||
Efree(fdat);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!GetNextTag(&obj))
|
if (!GetNextTag(&obj))
|
||||||
{
|
break;
|
||||||
Efree(fdat);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (obj.type == PAGE)
|
if (obj.type == PAGE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue