NagiosEnterprises / ndoutils

NDOUtils - Database Output for Nagios Core
GNU General Public License v2.0
48 stars 19 forks source link

The variable's value is assigned but never used #39

Closed AppChecker closed 7 years ago

AppChecker commented 7 years ago

Hi!

Please look this code fragment

            last_state=temp_host->last_state;
            last_state=temp_host->last_hard_state;

Varialbe 'last_state' is assigned twice. Probably, it should be:

            last_state=temp_host->last_state;
            last_hard_state=temp_host->last_hard_state;

like this

This possible defect found by AppChecker

hedenface commented 7 years ago

@Madlohe or @corynorell Can one of you create a patch and file a PR please?

hedenface commented 7 years ago

Closed via #40 - @Madlohe can you add yourself to the contributers/thanks list? Thanks.