[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/ksysguard/ksysguardd/Linux
From: John Tapsell <john.tapsell () kdemail ! net>
Date: 2007-02-01 1:42:24
Message-ID: 1170294144.268416.30787.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 628955 by johnflux:
Use calloc instead of malloc to fix small bug
M +1 -1 softraid.c
--- trunk/KDE/kdebase/workspace/ksysguard/ksysguardd/Linux/softraid.c #628954:628955
@@ -424,7 +424,7 @@
}
else {
/* Found a new array device. Create a data structure for it. */
- MyArray = malloc(sizeof (ArrayInfo));
+ MyArray = calloc(1,sizeof (ArrayInfo));
if (MyArray == NULL) {
/* Memory could not be allocated, so print an error and exit. */
fprintf(stderr, "Couldn't allocate memory\n");
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic