diff options
author | Thomas White <taw@physics.org> | 2021-07-22 13:27:36 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-07-22 13:27:36 +0200 |
commit | b86fddca5840c4765754327d62bb29ff830322db (patch) | |
tree | 811119ced907bba424fef690925d8bdc52a04d00 | |
parent | 9000b116c8e7e98824fda428eb24467afaa33306 (diff) |
get_crystfel_exe: Fix logic
-rw-r--r-- | src/crystfel_gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c index dbf949cd..f05cf7c0 100644 --- a/src/crystfel_gui.c +++ b/src/crystfel_gui.c @@ -1341,10 +1341,10 @@ char *get_crystfel_exe(const char *program) "This is OK provided the executable " "path is set correctly.\n"); exe_path = strdup(program); + } else { + exe_path = g_file_get_path(exe); + g_object_unref(exe); } - - exe_path = g_file_get_path(exe); - g_object_unref(exe); g_object_unref(crystfel_path); return exe_path; |