should be != :)
authorJeremy McNamara <jj@nufone.net>
Sun, 11 Jan 2004 19:34:04 +0000 (19:34 +0000)
committerJeremy McNamara <jj@nufone.net>
Sun, 11 Jan 2004 19:34:04 +0000 (19:34 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1954 65c4cc65-6c06-0410-ace0-fbb531ad65f3

cdr/cdr_pgsql.c

index ce8710a..aeee9a3 100755 (executable)
@@ -93,7 +93,7 @@ static int pgsql_log(struct ast_cdr *cdr)
                        PQescapeString(lastdata, cdr->lastdata, strlen(cdr->lastdata));
                if ((uniqueid = alloca(strlen(cdr->uniqueid) * 2 + 1)) != NULL)
                        PQescapeString(uniqueid, cdr->uniqueid, strlen(cdr->uniqueid));
-               if ((userfield = alloca(strlen(cdr->userfield) * 2 + 1)) !+ NULL)
+               if ((userfield = alloca(strlen(cdr->userfield) * 2 + 1)) != NULL)
                        PQescapeString(userfield, cdr->userfield, strlen(cdr->userfield));
 
                /* Check for all alloca failures above at once */