summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e509060)
raw | patch | inline | side by side (parent: e509060)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 7 Jun 2009 14:45:55 +0000 (14:45 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 7 Jun 2009 14:45:55 +0000 (14:45 +0000) |
src/rrd_cgi.c | patch | blob | history |
diff --git a/src/rrd_cgi.c b/src/rrd_cgi.c
index 13b7d067b59adfa4da2ed46fd71b226b5117dc62..27b4884b2e5b416c483f9ce598104d6911aa5203 100644 (file)
--- a/src/rrd_cgi.c
+++ b/src/rrd_cgi.c
length = atoi(ip);
if ((line = (char *) malloc(length + 2)) == NULL)
return NULL;
- fgets(line, length + 1, stdin);
+ if (fgets(line, length + 1, stdin) == NULL)
+ return NULL;
} else
return NULL;
} else if (cp && !strcmp(cp, "GET")) {