summaryrefslogtreecommitdiff
path: root/runtime/var.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2009-04-03 16:52:46 +0200
committerMichael Biebl <biebl@debian.org>2009-04-03 16:52:46 +0200
commitae1b7835db7c4a74ff2d2e48b34f6905a54e8627 (patch)
tree23f2a355e70dc4d86d291959c5f595adcb9be520 /runtime/var.c
parentc84d74c258d54713cadf8dfbeff10fcb4d91624f (diff)
downloadrsyslog-ae1b7835db7c4a74ff2d2e48b34f6905a54e8627.tar.gz
Imported Upstream version 3.20.5upstream/3.20.5
Diffstat (limited to 'runtime/var.c')
-rw-r--r--runtime/var.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/var.c b/runtime/var.c
index 7e51fc6..f964874 100644
--- a/runtime/var.c
+++ b/runtime/var.c
@@ -327,7 +327,7 @@ ConvForOperation(var_t *pThis, var_t *pOther)
case VARTYPE_NUMBER:
/* check if we can convert pThis to a number, if so use number format. */
iRet = ConvToNumber(pThis);
- if(iRet != RS_RET_NOT_A_NUMBER) {
+ if(iRet == RS_RET_NOT_A_NUMBER) {
CHKiRet(ConvToString(pOther));
} else {
FINALIZE; /* OK or error */
@@ -345,7 +345,7 @@ ConvForOperation(var_t *pThis, var_t *pOther)
break;
case VARTYPE_STR:
iRet = ConvToNumber(pOther);
- if(iRet != RS_RET_NOT_A_NUMBER) {
+ if(iRet == RS_RET_NOT_A_NUMBER) {
CHKiRet(ConvToString(pThis));
} else {
FINALIZE; /* OK or error */