GNOME Bugzilla – Bug 342820
gstnetclientclock.c(453): servaddr used before set
Last modified: 2006-05-25 15:52:38 UTC
We got a following bug report from David Binderman: I just tried to compile package gstreamer010-0.10.4-11 with the Intel C compiler. It said gstnetclientclock.c(453): warning #592: variable "servaddr" is used before its value is set The source code is GST_DEBUG_OBJECT (self, "socket opened on UDP port %hd", ntohs (servaddr.sin_port)); I agree with the compiler. Suggest initialise local variable "servaddr" before first use. I do not see exact solution, but it can be: - servaddr instead of self->servaddr - bad order of commands
* libs/gst/net/gstnetclientclock.c: (gst_net_client_clock_start): Initialize variable before using. Fixes #342820.