Retry only for https protocol
[elinks.git] / src / document / docdata.c
bloba277f7e9d93c6629e953c297bd775c93fb9dd8bb
1 /** The document->data tools
2 * @file */
4 #ifdef HAVE_CONFIG_H
5 #include "config.h"
6 #endif
8 #include <stdlib.h>
10 #include "elinks.h"
12 #include "document/docdata.h"
13 #include "document/document.h"
14 #include "util/error.h"
17 struct line *
18 realloc_lines(struct document *document, int y)
20 assert(document);
21 if_assert_failed return NULL;
23 if (document->height <= y) {
24 if (!ALIGN_LINES(&document->data, document->height, y + 1))
25 return NULL;
27 document->height = y + 1;
30 return &document->data[y];