diff gui/app/cfg.c @ 37083:ae4f30c4ef02

Determine size from variable declaration.
author ib
date Sat, 26 Apr 2014 16:32:53 +0000
parents 0790f864cea2
children
line wrap: on
line diff
--- a/gui/app/cfg.c	Sat Apr 26 16:30:54 2014 +0000
+++ b/gui/app/cfg.c	Sat Apr 26 16:32:53 2014 +0000
@@ -294,7 +294,7 @@
             if (!*line)
                 continue;
 
-            item = calloc(1, sizeof(plItem));
+            item = calloc(1, sizeof(*item));
 
             if (!item) {
                 gmp_msg(MSGT_GPLAYER, MSGL_FATAL, MSGTR_MemAllocFailed);
@@ -329,7 +329,7 @@
             if (!*line)
                 continue;
 
-            item = calloc(1, sizeof(urlItem));
+            item = calloc(1, sizeof(*item));
 
             if (!item) {
                 gmp_msg(MSGT_GPLAYER, MSGL_FATAL, MSGTR_MemAllocFailed);