pud: minor fix in the function reading the position file
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 15 Oct 2015 08:38:26 +0000 (10:38 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 15 Oct 2015 12:47:56 +0000 (14:47 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/pud/src/posFile.c

index 7ce8ee2..664c2bc 100644 (file)
@@ -126,8 +126,10 @@ bool readPositionFile(char * fileName, nmeaINFO * nmeaInfo) {
        FILE * fp = NULL;
        void * mtim;
        unsigned int lineNumber = 0;
+
        char * name = NULL;
        char * value = NULL;
+
        nmeaINFO result;
        bool retval = false;
 
@@ -305,7 +307,7 @@ bool readPositionFile(char * fileName, nmeaINFO * nmeaInfo) {
        }
 
        fclose(fp);
-       fp = 0;
+       fp = NULL;
 
        result.smask = POSFILE_DEFAULT_SMASK;
        nmea_INFO_set_present(&result.present, SMASK);