Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
37082:9e3b2b71a146 | 37083:ae4f30c4ef02 |
---|---|
292 plItem *item; | 292 plItem *item; |
293 | 293 |
294 if (!*line) | 294 if (!*line) |
295 continue; | 295 continue; |
296 | 296 |
297 item = calloc(1, sizeof(plItem)); | 297 item = calloc(1, sizeof(*item)); |
298 | 298 |
299 if (!item) { | 299 if (!item) { |
300 gmp_msg(MSGT_GPLAYER, MSGL_FATAL, MSGTR_MemAllocFailed); | 300 gmp_msg(MSGT_GPLAYER, MSGL_FATAL, MSGTR_MemAllocFailed); |
301 mplayer(MPLAYER_EXIT_GUI, EXIT_ERROR, 0); | 301 mplayer(MPLAYER_EXIT_GUI, EXIT_ERROR, 0); |
302 } | 302 } |
327 urlItem *item; | 327 urlItem *item; |
328 | 328 |
329 if (!*line) | 329 if (!*line) |
330 continue; | 330 continue; |
331 | 331 |
332 item = calloc(1, sizeof(urlItem)); | 332 item = calloc(1, sizeof(*item)); |
333 | 333 |
334 if (!item) { | 334 if (!item) { |
335 gmp_msg(MSGT_GPLAYER, MSGL_FATAL, MSGTR_MemAllocFailed); | 335 gmp_msg(MSGT_GPLAYER, MSGL_FATAL, MSGTR_MemAllocFailed); |
336 mplayer(MPLAYER_EXIT_GUI, EXIT_ERROR, 0); | 336 mplayer(MPLAYER_EXIT_GUI, EXIT_ERROR, 0); |
337 } | 337 } |