2
0
Fork 0

Fix "notequal" string comparison bug

This commit is contained in:
Stefan Bühler 2008-12-09 22:38:37 +01:00
parent 4ef644de88
commit e438fb58ab
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ static handler_t condition_check_eval_string(vrequest *vr, condition *cond, gboo
*res = g_str_equal(val, cond->rvalue.string->str);
break;
case CONFIG_COND_NE:
*res = g_str_equal(val, cond->rvalue.string->str);
*res = !g_str_equal(val, cond->rvalue.string->str);
break;
case CONFIG_COND_PREFIX:
*res = g_str_has_prefix(val, cond->rvalue.string->str);