summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--urlopen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/urlopen.c b/urlopen.c
index e68f272..d70c7b9 100644
--- a/urlopen.c
+++ b/urlopen.c
@@ -84,7 +84,10 @@ getext(char *url)
{
char *buff = malloc(BUFFSIZE);
if (buff == NULL)
+ {
+ perror("malloc");
return 0;
+ }
strncpy(buff, programs[i][0], BUFFSIZE-1);
char *t = strtok(buff, ",");
while (t != NULL)