Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6
[pandora-kernel.git] / scripts / basic / docproc.c
index fc3b18d..98dec87 100644 (file)
@@ -333,7 +333,10 @@ static void docsect(char *filename, char *line)
                if (*s == '\n')
                        *s = '\0';
 
-       asprintf(&s, "DOC: %s", line);
+       if (asprintf(&s, "DOC: %s", line) < 0) {
+               perror("asprintf");
+               exit(1);
+       }
        consume_symbol(s);
        free(s);