summaryrefslogtreecommitdiff
path: root/src/bin/eeze
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-12-01 15:38:40 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-12-01 16:26:32 -0200
commit966c51460bfcdbcec23ff80ad1d3758e2b89b3ae (patch)
tree46697f329250ff0c9e9a5c58c1bf99e0e16a6b12 /src/bin/eeze
parent2500a2d03e8a846e6137c392b9ac5ebce227b3cf (diff)
eeze_scanner_monitor: fix error handling.
dialer would be uninitialized if we fail to create a path, so use a new label to handle that. Fixes CID 1366471.
Diffstat (limited to 'src/bin/eeze')
-rw-r--r--src/bin/eeze/eeze_scanner_monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/eeze/eeze_scanner_monitor.c b/src/bin/eeze/eeze_scanner_monitor.c
index 9985015598..afed23c974 100644
--- a/src/bin/eeze/eeze_scanner_monitor.c
+++ b/src/bin/eeze/eeze_scanner_monitor.c
@@ -152,7 +152,7 @@ main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
152 { 152 {
153 fprintf(stderr, "ERROR: could not get local communication path\n"); 153 fprintf(stderr, "ERROR: could not get local communication path\n");
154 retval = EXIT_FAILURE; 154 retval = EXIT_FAILURE;
155 goto end; 155 goto error_path;
156 } 156 }
157 157
158 loop = ecore_main_loop_get(); 158 loop = ecore_main_loop_get();
@@ -207,7 +207,7 @@ main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
207 207
208 free(path); 208 free(path);
209 path = NULL; 209 path = NULL;
210 210 error_path:
211 eet_data_descriptor_free(edd); 211 eet_data_descriptor_free(edd);
212 edd = NULL; 212 edd = NULL;
213 213