Fix assignment written as a comparison in validate_arguments() when db_pass is NULL (Patch from http://blog.barfoo.org/projects/rpms-for-sles10)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2034 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
Thomas Guyot-Sionnest 2008-08-16 04:47:32 +00:00
parent 564816c124
commit dfca15116c
2 changed files with 2 additions and 2 deletions

View file

@ -362,7 +362,7 @@ validate_arguments (void)
db_host = strdup("");
if (db_pass == NULL)
db_pass == strdup("");
db_pass = strdup("");
if (db == NULL)
db = strdup("");

View file

@ -271,7 +271,7 @@ validate_arguments (void)
db_host = strdup("");
if (db_pass == NULL)
db_pass == strdup("");
db_pass = strdup("");
if (db == NULL)
db = strdup("");