diff --git a/dox/dox.h b/dox/dox.h index 80c5dc43..ac748c17 100644 --- a/dox/dox.h +++ b/dox/dox.h @@ -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); diff --git a/dox/format.c b/dox/format.c index 32146463..68cdb63a 100644 --- a/dox/format.c +++ b/dox/format.c @@ -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) {