xvd_mixer.c:51:sometimes-uninitialized ?
Bug #1351229 reported by
dcb
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Xfce4 Volumed |
Invalid
|
Undecided
|
Unassigned |
Bug Description
xvd_mixer.c:51:6: warning: variable 'device_name' is used uninitialized whenever 'if' condition is false [-Wsometimes-
if (g_object_
/* Fall back to default name if neccessary */
if (G_UNLIKELY (device_name == NULL))
Suggest init device_name at it's declaration.
gchar *device_name = NULL;
To post a comment you must log in.
g_object_get will always set a value to device_name. So, unless the device-name property in the mixer object is incorrect, this could should work as expected in any case.