diff options
author | Michael Biebl <biebl@debian.org> | 2009-04-03 16:52:46 +0200 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2009-04-03 16:52:46 +0200 |
commit | ae1b7835db7c4a74ff2d2e48b34f6905a54e8627 (patch) | |
tree | 23f2a355e70dc4d86d291959c5f595adcb9be520 /runtime/var.c | |
parent | c84d74c258d54713cadf8dfbeff10fcb4d91624f (diff) | |
download | rsyslog-ae1b7835db7c4a74ff2d2e48b34f6905a54e8627.tar.gz |
Imported Upstream version 3.20.5upstream/3.20.5
Diffstat (limited to 'runtime/var.c')
-rw-r--r-- | runtime/var.c | 4 |
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 */ |