Mercurial > hg > forks > geeqie
changeset 2727:c3dfec854b7b
layout_util: fix passing an rvalue to WEXITSTATUS
Fixes #588.
author | Misty De Meo <mistydemeo@gmail.com> |
---|---|
date | Wed, 07 Feb 2018 23:04:01 -0800 |
parents | 13e542066941 |
children | 981c22b02736 |
files | src/layout_util.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;