plugin: avoid using uninitialized variable
Reported by: Jose Maria Gonzalez <jmgonzalezc@indra.es>
This commit is contained in:
@@ -629,7 +629,7 @@ mm_plugin_supports_port (MMPlugin *self,
|
|||||||
GAsyncReadyCallback callback,
|
GAsyncReadyCallback callback,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
MMPortProbe *probe;
|
MMPortProbe *probe = NULL;
|
||||||
GSimpleAsyncResult *async_result;
|
GSimpleAsyncResult *async_result;
|
||||||
PortProbeRunContext *ctx;
|
PortProbeRunContext *ctx;
|
||||||
gboolean need_vendor_probing;
|
gboolean need_vendor_probing;
|
||||||
@@ -750,7 +750,8 @@ mm_plugin_supports_port (MMPlugin *self,
|
|||||||
|
|
||||||
out:
|
out:
|
||||||
g_object_unref (async_result);
|
g_object_unref (async_result);
|
||||||
g_object_unref (probe);
|
if (probe)
|
||||||
|
g_object_unref (probe);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
Reference in New Issue
Block a user