summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-05-13 20:05:14 +0200
committerGravatar waker <wakeroid@gmail.com>2011-05-13 20:05:14 +0200
commit19efa262593693f8b711867b5dd07f63d5dd3b02 (patch)
treec8d292cb1b9b8d8406dda2cb81ce2702a2aea997 /plugins
parent0e2024ea10437d1a84e33b5ce979d264cf38876c (diff)
fixed shellexec crash on config syntax error
Diffstat (limited to 'plugins')
-rw-r--r--plugins/shellexec/shellexec.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/shellexec/shellexec.c b/plugins/shellexec/shellexec.c
index f6a88658..9485c28b 100644
--- a/plugins/shellexec/shellexec.c
+++ b/plugins/shellexec/shellexec.c
@@ -73,9 +73,12 @@ shellexec_load (DB_functions_t *api) {
return DB_PLUGIN (&plugin);
}
-static char*
+static const char*
trim (char* s)
{
+ if (!s) {
+ return "";
+ }
char *h, *t;
for (h = s; *h == ' ' || *h == '\t'; h++);
@@ -214,7 +217,7 @@ static DB_misc_t plugin = {
"shcmd is the command to execute, supports title formatting\n\n"
"title is the name of command displayed in UI (context menu)\n\n"
"name used for referencing commands from other plugins, e.g hotkeys\n\n"
- "flags comma-separated of command flags, allowed flags are:\n"
+ "flags are comma-separated list of items, allowed items are:\n"
" single - command allowed only for single track\n"
" local - command allowed only for local files\n"
" remote - command allowed only for non-local files\n"