Mercurial > hg > forks > geeqie
changeset 2726:37c2e1a7d08b
Fix #588,589: Geeqie fails to build on macOS
https://github.com/BestImageViewer/geeqie/issues/588
https://github.com/BestImageViewer/geeqie/pull/589
author | Misty De Meo <> |
---|---|
date | Sat, 10 Feb 2018 17:16:52 +0000 |
parents | c3417ff92722 |
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 Sun Feb 04 11:43:05 2018 +0000 +++ b/src/layout_util.c Sat Feb 10 17:16:52 2018 +0000 @@ -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;