| /*************************************************************************** | /*************************************************************************** | ||||
| * Copyright (C) 2005 to 2014 by Jonathan Duddington * | * Copyright (C) 2005 to 2014 by Jonathan Duddington * | ||||
| * email: [email protected] * | * email: [email protected] * | ||||
| * Copyright (C) 2015 by Reece H. Dunn * | |||||
| * * | * * | ||||
| * This program is free software; you can redistribute it and/or modify * | * This program is free software; you can redistribute it and/or modify * | ||||
| * it under the terms of the GNU General Public License as published by * | * it under the terms of the GNU General Public License as published by * | ||||
| } | } | ||||
| if((manifest = (NAMETAB *)realloc(manifest, n_lines * sizeof(NAMETAB))) == NULL) | if((manifest = (NAMETAB *)realloc(manifest, n_lines * sizeof(NAMETAB))) == NULL) | ||||
| { | |||||
| fclose(f); | |||||
| return; | return; | ||||
| } | |||||
| n_manifest = 0; | n_manifest = 0; | ||||
| while(fgets(buf, sizeof(buf), f) != NULL) | while(fgets(buf, sizeof(buf), f) != NULL) |