*** html_analyzer.c Fri Oct 8 02:02:34 1993
--- /users/p/pitkow/html_analyzer-0.10/src/html_analyzer.c Fri Nov 12 01:23:17 1993
***************
*** 68,79 ****
* make copy of original anchor
*/
anchor = strdup( orig_anchor);
/*
* handle non-hyperlink anchors , e.g.
*/
! if ( ! ( anchor = ( char *)strstr( anchor, "HREF")) &&
! ! ( anchor = ( char *)strstr( anchor, "href")) )
return " \0";
/*
--- 68,85 ----
* make copy of original anchor
*/
anchor = strdup( orig_anchor);
+
+ if ( !anchor) {
+ fprintf( stderr, "\nget_href: malloc error");
+ safe_bail_out( -1);
+ }
+
/*
* handle non-hyperlink anchors , e.g.
*/
! if ( ! ( anchor = ( char *)strstr( orig_anchor, "HREF")) &&
! ! ( anchor = ( char *)strstr( orig_anchor, "href")) )
return " \0";
/*