mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[html] compilation fix
This commit is contained in:
parent
76b093600d
commit
cc31e74cc4
@ -214,6 +214,7 @@ html_script(struct html_context *html_context, char *a,
|
|||||||
/* TODO: Charsets for external scripts. */
|
/* TODO: Charsets for external scripts. */
|
||||||
char *type, *language, *src;
|
char *type, *language, *src;
|
||||||
int in_comment = 0;
|
int in_comment = 0;
|
||||||
|
char *pos = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
html_skip(html_context, a);
|
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);
|
type = get_attr_val(a, "type", html_context->doc_cp);
|
||||||
if (type) {
|
if (type) {
|
||||||
char *pos = type;
|
pos = type;
|
||||||
|
|
||||||
if (!c_strncasecmp(type, "text/", 5)) {
|
if (!c_strncasecmp(type, "text/", 5)) {
|
||||||
pos += 5;
|
pos += 5;
|
||||||
|
Loading…
Reference in New Issue
Block a user