Commit eae48de4 authored by Zeeshan Ali's avatar Zeeshan Ali

service: Ensure variable is initialized before use

This fixes a crash in case of gclue_locator_start_finish() returning an
parent 1a29cddb
......@@ -149,7 +149,7 @@ on_start_ready (GObject *source_object,
GClueLocator *locator = GCLUE_LOCATOR (source_object);
GClueServiceLocation *service_location;
GClueLocationInfo *location;
char *path;
char *path = NULL;
GError *error = NULL;
if (!gclue_locator_start_finish (locator, res, &error))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment