]> granicus.if.org Git - neomutt/commit
check return value of fgets 620/head
authorStefan Assmann <sassmann@kpanic.de>
Tue, 30 May 2017 06:25:33 +0000 (08:25 +0200)
committerRichard Russon <rich@flatcap.org>
Wed, 7 Jun 2017 21:57:51 +0000 (22:57 +0100)
commitf812dd669df150f2cb6a13d6ca6e1a2891a60219
tree0942cccb28f67454df1aa8945aaf598cd36d912c
parent85df99a89e60105afdae44f8534c9d674a371c68
check return value of fgets

Following warning was observed:
 init.c: In function 'mutt_init':
 mutt.h:53:15: warning: ignoring return value of 'fgets_unlocked', declared with attribute warn_unused_result [-Wunused-result]
  #define fgets fgets_unlocked

 init.c:4053:7: note: in expansion of macro 'fgets'
        fgets(buffer, sizeof(buffer), f);
        ^~~~~
Added code that checks return value.

Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
init.c