Skip to content
Snippets Groups Projects
Commit 3aad3405 authored by rswindell's avatar rswindell
Browse files

Added NULL fp checking iniReadFile().

parent a4d2afff
Branches
Tags
No related merge requests found
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2005 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2006 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public License *
......@@ -1668,7 +1668,8 @@ str_list_t iniReadFile(FILE* fp)
str_list_t list;
FILE* insert_fp=NULL;
rewind(fp);
if(fp!=NULL)
rewind(fp);
list = strListReadFile(fp, NULL, INI_MAX_LINE_LEN);
if(list==NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment