summaryrefslogtreecommitdiff
path: root/plugins/shellexec
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-04-28 22:00:48 +0200
committerGravatar waker <wakeroid@gmail.com>2012-04-28 22:00:48 +0200
commitacf36cadde3ae7583cd001c594e7f0d8c1561026 (patch)
tree0bb56282dd2a9bcf749d016ba25560bb143b2ed0 /plugins/shellexec
parent8ddcb77dc90624a2599073fe34f26e71b2f9a66d (diff)
fixed NULL callback in shellexec commands when created from GUI
Diffstat (limited to 'plugins/shellexec')
-rw-r--r--plugins/shellexec/shellexec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/shellexec/shellexec.c b/plugins/shellexec/shellexec.c
index 11f8f603..df164dee 100644
--- a/plugins/shellexec/shellexec.c
+++ b/plugins/shellexec/shellexec.c
@@ -257,6 +257,7 @@ shx_get_actions (DB_plugin_action_callback_t callback)
Shx_action_t*
shx_action_add (void) {
Shx_action_t *a = calloc (sizeof (Shx_action_t), 1);
+ a->parent.callback = (DB_plugin_action_callback_t)shx_callback;
if (!actions) {
actions = a;
}