Bugzilla – Bug 158756
fbi-2.03-10: local variable used before set
Last modified: 2006-03-17 12:50:13 UTC
I just tried to compile package fbi-2.03-10 with the Intel C compiler. It said sane.c(40): warning #592: variable "list" is used before its value is set The source code is wlist = malloc(sizeof(Widget*)*nchildren); memcpy(list,children,sizeof(Widget*)*nchildren); I agree with the compiler. Suggest new code wlist = malloc( wsizeof(Widget*) * nchildren); memcpy( wlist, wchildren, wsizeof(Widget*)*nchildren);
Fixed in fbida cvs.