https://github.com/BestImageViewer/geeqie/issues/588
https://github.com/BestImageViewer/geeqie/pull/589
gint run_result;
GenericDialog *gd;
GString *message;
+ int cmdstatus;
if (!layout_valid(&lw)) return;
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;