]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
reallocing clears memory unneededly since it's always already cleared
authorTimo Sirainen <tss@iki.fi>
Wed, 6 Aug 2003 19:16:06 +0000 (22:16 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 6 Aug 2003 19:16:06 +0000 (22:16 +0300)
--HG--
branch : HEAD

src/lib/mempool-alloconly.c

index 33910a687b350a41f4c2968a6f4c044a44209241..d042bfdb25a8f0eda5a972febb5758264419b86a 100644 (file)
@@ -237,11 +237,6 @@ static void *pool_alloconly_realloc(pool_t pool, void *mem,
                mem = new_mem;
        }
 
-       if (old_size < new_size) {
-                /* clear new data */
-               memset((char *) mem + old_size, 0, new_size - old_size);
-       }
-
         return mem;
 }