Sfoglia il codice sorgente

The arguments to memset were in the wrong order. This code is only used on Windows.

Rich Megginson 18 anni fa
parent
commit
4fc63ed438
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      ldap/servers/slapd/back-ldbm/perfctrs.c

+ 1 - 1
ldap/servers/slapd/back-ldbm/perfctrs.c

@@ -103,7 +103,7 @@ static void init_shared_memory(perfctrs_private *priv)
 {
 	performance_counters *perf = (performance_counters*)priv->memory;
 	if (NULL != perf) {
-		memset(perf,sizeof(performance_counters),0);
+		memset(perf,0,sizeof(performance_counters));
 	}
 }