diff options
Diffstat (limited to 'src/vdr-plugin/common.c')
| -rw-r--r-- | src/vdr-plugin/common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vdr-plugin/common.c b/src/vdr-plugin/common.c index 17a73b0..2792d24 100644 --- a/src/vdr-plugin/common.c +++ b/src/vdr-plugin/common.c @@ -142,6 +142,9 @@ char *URLencode(const char *s) { '\0' }; + if (!s) + return NULL; + char *buf = (char *)malloc((3*strlen(s)+1)*sizeof(char)); if (!buf) return NULL; |
