comparison 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
comparison
equal deleted inserted replaced
37082:9e3b2b71a146 37083:ae4f30c4ef02
405 if (file > what) 405 if (file > what)
406 path[file - what - 1] = 0; 406 path[file - what - 1] = 0;
407 else 407 else
408 strcpy(path, "."); 408 strcpy(path, ".");
409 409
410 item = calloc(1, sizeof(plItem)); 410 item = calloc(1, sizeof(*item));
411 411
412 if (!item) { 412 if (!item) {
413 free(path); 413 free(path);
414 return False; 414 return False;
415 } 415 }