浏览代码

Fix previous commit e5a5344290a351344c2451017d1d5677fe649cb8

Thanks to Andrew Pogrebennyk
Jon Bonilla 14 年之前
父节点
当前提交
3786d09052
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      modules/ndb_redis/redis_client.c

+ 2 - 2
modules/ndb_redis/redis_client.c

@@ -71,10 +71,10 @@ int redisc_init(void)
 				addr = pit->body.s;
 				addr[pit->body.len] = '\0';
 			} else if(pit->name.len==4 && strncmp(pit->name.s, "port", 4)==0) {
-				if(!str2int(&pit->body, &port) < 0)
+				if(str2int(&pit->body, &port) < 0)
 					port = 6379;
 			} else if(pit->name.len==2 && strncmp(pit->name.s, "db", 2)==0) {
-				if(!str2int(&pit->body, &db) < 0)
+				if(str2int(&pit->body, &db) < 0)
 					db = 0;
 			}
 		}