Was missing <errno.h>

This commit is contained in:
Pierre Pronchery 2009-02-23 15:43:08 +00:00
parent c42f8665dc
commit 57e003d38b

View File

@ -28,6 +28,7 @@
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <libgtkhtml/gtkhtml.h>
#include <libgtkhtml/view/htmlselection.h>
#define GNET_EXPERIMENTAL
@ -304,6 +305,7 @@ static GHtmlConn * _ghtmlconn_new(GHtml * ghtml, HtmlStream * stream,
GHtmlConn ** p;
GHtmlConn * c;
/* FIXME leaks memory: records are not re-used */
if((p = realloc(ghtml->conns, sizeof(*p) * (ghtml->conns_cnt + 1)))
== NULL)
return NULL;