diff options
Diffstat (limited to 'librdfa/rdfa.c')
-rw-r--r-- | librdfa/rdfa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/librdfa/rdfa.c b/librdfa/rdfa.c index 7ec25ecf..191117ed 100644 --- a/librdfa/rdfa.c +++ b/librdfa/rdfa.c @@ -150,7 +150,7 @@ static size_t rdfa_init_base( char* href_start = strstr(base_start, "href="); char sep = href_start[5]; char* uri_start = href_start + 6; - char* uri_end = strchr(uri_start, sep); + char* uri_end = uri_start ? strchr(uri_start, sep) : NULL; if((uri_start != NULL) && (uri_end != NULL)) { |