diff gui/util/list.c @ 37083:ae4f30c4ef02

Determine size from variable declaration.
author ib
date Sat, 26 Apr 2014 16:32:53 +0000
parents b03e0fd957fd
children
line wrap: on
line diff
--- a/gui/util/list.c	Sat Apr 26 16:30:54 2014 +0000
+++ b/gui/util/list.c	Sat Apr 26 16:32:53 2014 +0000
@@ -407,7 +407,7 @@
     else
         strcpy(path, ".");
 
-    item = calloc(1, sizeof(plItem));
+    item = calloc(1, sizeof(*item));
 
     if (!item) {
         free(path);