app: fix "Bad interpreter" error messaging.
commitb67d7c4413c2c7e1672630d025e7f40bc3143de2
authorJehan <jehan@girinstud.io>
Sun, 19 Aug 2018 10:21:57 +0000 (19 12:21 +0200)
committerJehan <jehan@girinstud.io>
Sun, 19 Aug 2018 10:48:02 +0000 (19 12:48 +0200)
tree3644eb1a764f1714420c3440ab5c82852ef69dc5
parentf1ff239d68a5cd5763df3099f32ebacb3865c44e
app: fix "Bad interpreter" error messaging.

If I override the `program` variable, and it is not found in PATH
environment, then it is NULL and the error message is unhelpful. Make
the return value of g_find_program_in_path() into a separate variable
instead, and only override `program` in the end, when we know it is
non-NULL.

(cherry picked from commit 87a9feb6d958037c9545f0d011f0ee9ad45d64c2)
app/plug-in/gimpinterpreterdb.c