summaryrefslogtreecommitdiffstats
path: root/src/config.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-02-17 16:49:35 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2012-02-18 13:04:21 +0100
commit894ac2d70dd2ab3a8db709409389cc1a83385eb5 (patch)
tree3141866abbb7c5c72f909aa5516f10dced1f7be1 /src/config.c
parent47ceb96e1356ce369931c127c33266e863e61c89 (diff)
downloadcalcurse-894ac2d70dd2ab3a8db709409389cc1a83385eb5.tar.gz
calcurse-894ac2d70dd2ab3a8db709409389cc1a83385eb5.zip
Trap fgets() failure in *_scan()
Ensure we don't read arbitrary data when fgets() returns a NULL string (meaning that either the EOF is encountered or an error occurred). This also fixes a couple of compiler warnings seen with "-Wunused-result". Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/config.c')
0 files changed, 0 insertions, 0 deletions