GNOME Bugzilla – Bug 759588
Trivial: uninitialized variable.
Last modified: 2017-04-17 18:20:40 UTC
After build the project, I was reviewing trace of the compiling and saw the following message (sorry for the trace in spanish): ``` gcal-utils.c: En la función ‘icaltime_compare_with_current’: gcal-utils.c:449:10: aviso: puede ser que se utilice ‘result’ sin inicializar en esta función [-Wmaybe-uninitialized] return result; ^ gcal-utils.c:420:8: nota: ‘result’ se declaró aquí gint result; ^ ``` Basically the 'result' var is uninitialized. I'm not sure if the attached patch breaks any coding convention, but solves the warning and simplifies the code a little.
Created attachment 317559 [details] [review] Fix uninitialized variable
Comment on attachment 317559 [details] [review] Fix uninitialized variable Pushed as commit 2001273
Thanks for working on this.