# HG changeset patch # User Misty De Meo # Date 1518073441 28800 # Node ID c3dfec854b7b022b7ab7bfa7fe3e1f5e03bb91d9 # Parent 13e5420669416d53fecc34eb33215e969e5d60be layout_util: fix passing an rvalue to WEXITSTATUS Fixes #588. diff -r 13e542066941 -r c3dfec854b7b src/layout_util.c --- a/src/layout_util.c Wed Jan 24 22:40:02 2018 +0100 +++ b/src/layout_util.c Wed Feb 07 23:04:01 2018 -0800 @@ -477,6 +477,7 @@ gint run_result; GenericDialog *gd; GString *message; + int cmdstatus; if (!layout_valid(&lw)) return; @@ -511,7 +512,8 @@ rotation = g_strdup_printf("%d", fd_n->user_orientation); command = g_strconcat(GQ_BIN_DIR, "/geeqie-rotate -r ", rotation, keep_date ? " -t \"" : " \"", fd_n->path, "\"", NULL); - run_result = WEXITSTATUS(runcmd(command)); + cmdstatus = runcmd(command); + run_result = WEXITSTATUS(cmdstatus); if (!run_result) { fd_n->user_orientation = 0;