summaryrefslogtreecommitdiff
path: root/plugins/shellexec
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-11 20:55:09 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-11 21:30:40 +0100
commitdfacef3019e560159601c80745f2b88919f65d27 (patch)
tree14fd54c01bf3ba26076c71f3ca09e6f77bbdc5fb /plugins/shellexec
parent679daf9907e3ae8bba66fe8a2e5f57a2987130f4 (diff)
fixed few errors reported by cppcheck (thanks to Pavel Roschin)
Diffstat (limited to 'plugins/shellexec')
-rw-r--r--plugins/shellexec/shellexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/shellexec/shellexec.c b/plugins/shellexec/shellexec.c
index 56ceb970..99bb4715 100644
--- a/plugins/shellexec/shellexec.c
+++ b/plugins/shellexec/shellexec.c
@@ -106,7 +106,7 @@ shx_callback (Shx_action_t *action, int ctx)
deadbeef->pl_lock ();
ddb_playlist_t *plt = deadbeef->plt_get_curr ();
if (plt) {
- DB_playItem_t **items;
+ DB_playItem_t **items = NULL;
int items_count = deadbeef->plt_getselcount (plt);
if (0 < items_count) {
items = malloc (sizeof (DB_playItem_t *) * items_count);