Skip to content

Commit

Permalink
xdg/gconf: Fix return to always set appropriate error
Browse files Browse the repository at this point in the history
Signed-off-by: Ikey Doherty <[email protected]>
  • Loading branch information
ikeydoherty committed Nov 29, 2017
1 parent 1dc0324 commit dc3f918
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/handlers/xdg/gconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ static UscHandlerStatus usc_handler_gconf_exec_internal(UscContext *ctx, const c
if (r != 0) {
usc_context_emit_task_finish(ctx, USC_HANDLER_FAIL);
ret = USC_HANDLER_FAIL | USC_HANDLER_BREAK;
} else {
usc_context_emit_task_finish(ctx, USC_HANDLER_SUCCESS);
ret = USC_HANDLER_SUCCESS | USC_HANDLER_BREAK;
}
unsetenv("GCONF_CONFIG_SOURCE");
usc_context_emit_task_finish(ctx, USC_HANDLER_SUCCESS);

ret = USC_HANDLER_SUCCESS | USC_HANDLER_BREAK;

unsetenv("GCONF_CONFIG_SOURCE");
done:
globfree(&schemas);
return ret;
Expand Down

0 comments on commit dc3f918

Please sign in to comment.