2 * poor choice of variable type ?

Bug #1236500 reported by dcb
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Musca
New
Undecided
Unassigned

Bug Description

I just ran the static analyser "cppcheck" over
the source code of musca-0.9.24

It said

[tools.c:231]: (warning) Storing fgetc() return value in char variable and then comparing with EOF.
[musca.c:3437]: (warning) Storing getchar() return value in char variable and then comparing with EOF.

According to page 16 of K&R 2, variables must be type int to
compare successfully with EOF.

Suggest code rework.

Revision history for this message
Jeroen Roovers (jer-gentoo) wrote :
Revision history for this message
Jeroen Roovers (jer-gentoo) wrote :

The previous patch didn't address the original issue.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.