summaryrefslogtreecommitdiffstats
path: root/source/dialogs/script.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-03-04 19:41:06 +0100
committerDave Davenport <qball@gmpclient.org>2017-03-04 19:41:06 +0100
commit3f4d58ef531a17d6667318a4e8f9390a383ffab6 (patch)
tree29aa6b8bd7c7420a236b3be2fd62404889d8ee53 /source/dialogs/script.c
parent8ee37012d1b55e69a66fb88727b14c284b6a367f (diff)
Indent code.
Diffstat (limited to 'source/dialogs/script.c')
-rw-r--r--source/dialogs/script.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/dialogs/script.c b/source/dialogs/script.c
index 5744f5ac..f653d719 100644
--- a/source/dialogs/script.c
+++ b/source/dialogs/script.c
@@ -76,11 +76,9 @@ static char **get_script_output ( const char *command, unsigned int *length )
static char **execute_executor ( Mode *sw, const char *result, unsigned int *length )
{
- char **retv = NULL;
-
char *arg = g_shell_quote ( result );
char *command = g_strdup_printf ( "%s %s", (const char *) sw->ed, arg );
- retv = get_script_output ( command, length );
+ char **retv = get_script_output ( command, length );
g_free ( command );
g_free ( arg );
return retv;