diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2013-03-30 12:31:39 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2013-03-30 12:31:39 -0700 |
commit | 851c8551c0d5314780b9430d1e7872a267e61ed2 (patch) | |
tree | a097f1b6cbad9cf7695619c9014857f607065f0b /src | |
parent | 7f112787057a1524df78b682b20dbdfbd2578100 (diff) | |
download | abc-851c8551c0d5314780b9430d1e7872a267e61ed2.tar.gz abc-851c8551c0d5314780b9430d1e7872a267e61ed2.tar.bz2 abc-851c8551c0d5314780b9430d1e7872a267e61ed2.zip |
Compiler warnings.
Diffstat (limited to 'src')
-rw-r--r-- | src/map/if/ifLibBox.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/if/ifLibBox.c b/src/map/if/ifLibBox.c index 7795338c..f7e2f8fe 100644 --- a/src/map/if/ifLibBox.c +++ b/src/map/if/ifLibBox.c @@ -221,7 +221,8 @@ If_LibBox_t * If_LibBoxRead2( char * pFileName ) { while ( pToken == NULL ) { - (void) fgets( pBuffer, nSize, pFile ); + if ( fgets( pBuffer, nSize, pFile ) == NULL ) + assert( 0 ); pToken = strtok( pBuffer, " \n\r\t" ); } pBox->pDelays[i] = (pToken[0] == '-') ? -1 : atoi(pToken); |