[evolution-patches] google code search found invalid memset in eds.



Trivial patch attached to fix up order of memset arguments, found by
google code search.

Regards,
Andreas Henriksson
Found by google code search....

--- libdb/hash/hash_open.c.orig	2006-11-22 19:37:50.000000000 +0100
+++ libdb/hash/hash_open.c	2006-11-22 19:38:03.000000000 +0100
@@ -409,7 +409,7 @@
 			goto err;
 	} else {
 #ifdef DIAGNOSTIC
-		memset(buf, dbp->pgsize, 0);
+		memset(buf, 0, dbp->pgsize);
 #endif
 		page = (PAGE *)buf;
 	}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]