diff --git a/plugins/popen.c b/plugins/popen.c
index f05fe974efa2d30d4552ba3ac642ee58ad10283c..94ad583f78770dfac294e5ee3b91376c0b2b3fc4 100644 (file)
--- a/plugins/popen.c
+++ b/plugins/popen.c
/* there cannot be more args than characters */
argc = strlen (cmdstring) + 1; /* add 1 for NULL termination */
argv = malloc (sizeof(char*)*argc);
+
if (argv == NULL) {
printf ("Could not malloc argv array in popen()\n");
return NULL;