]> git.saurik.com Git - redis.git/blobdiff - src/redis.c
removed a number of stupid compilation warnings on Linux
[redis.git] / src / redis.c
index 4aa19560040096ac48b733fbedef57016ab112ba..6375555bdf118bf3e18cd42d9cdbad99bc8025a2 100644 (file)
@@ -1250,7 +1250,7 @@ void freeMemoryIfNeeded(void) {
         if (tryFreeOneObjectFromFreelist() == REDIS_OK) continue;
 
         for (j = 0; j < server.dbnum; j++) {
-            long bestval;
+            long bestval = 0; /* just to prevent warning */
             sds bestkey = NULL;
             struct dictEntry *de;
             redisDb *db = server.db+j;