diff options
author | Uwe Steinmann <steinm@php.net> | 2000-12-14 07:37:37 +0000 |
---|---|---|
committer | Uwe Steinmann <steinm@php.net> | 2000-12-14 07:37:37 +0000 |
commit | 89279afdd37bf6e5c261962128dc38c410664faf (patch) | |
tree | b4dae922fe393c5c9aa3d27ede1dc391623b2577 | |
parent | a730ffdc39c95a406cbe2c581ff1b637071440d0 (diff) | |
download | php-git-89279afdd37bf6e5c261962128dc38c410664faf.tar.gz |
- handled possible case that an Anchor has no Position
(This used to cause a segm fault)
-rw-r--r-- | ext/hyperwave/hg_comm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/hyperwave/hg_comm.c b/ext/hyperwave/hg_comm.c index b65bd8f34b..5682025c5b 100644 --- a/ext/hyperwave/hg_comm.c +++ b/ext/hyperwave/hg_comm.c @@ -375,7 +375,7 @@ DLIST *fnCreateAnchorList(hw_objectID objID, char **anchors, char **docofanchorr In such a case the Position has the value 'invisible' */ str = strstr(object, "Position"); str += 9; - if(0 != strncmp(str, "invisible", 9)) { + if((str != 9) && (0 != strncmp(str, "invisible", 9))) { sscanf(str, "0x%X 0x%X", &start, &end); /* Determine ObjectID */ |