1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00

[html] compilation fix

This commit is contained in:
Witold Filipczyk 2022-02-18 15:13:17 +01:00
parent 76b093600d
commit cc31e74cc4

View File

@ -214,6 +214,7 @@ html_script(struct html_context *html_context, char *a,
/* TODO: Charsets for external scripts. */
char *type, *language, *src;
int in_comment = 0;
char *pos = NULL;
#endif
html_skip(html_context, a);
@ -229,7 +230,7 @@ html_script(struct html_context *html_context, char *a,
*/
type = get_attr_val(a, "type", html_context->doc_cp);
if (type) {
char *pos = type;
pos = type;
if (!c_strncasecmp(type, "text/", 5)) {
pos += 5;