diff options
author | Vicent Marti <[email protected]> | 2014-09-03 03:40:23 +0200 |
---|---|---|
committer | Vicent Marti <[email protected]> | 2014-09-09 03:39:15 +0200 |
commit | a7314deae649646f1f7ce5ede972641b5b62538c (patch) | |
tree | c958536337ab5cbc96d247725e0dd35fdc02b998 /src/html/houdini_href_e.c | |
parent | 7e12fdba0c9a444a3cfc29c520e2f2caa57a8232 (diff) |
338/103
Diffstat (limited to 'src/html/houdini_href_e.c')
-rw-r--r-- | src/html/houdini_href_e.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/html/houdini_href_e.c b/src/html/houdini_href_e.c index 59fe850..b2a7d79 100644 --- a/src/html/houdini_href_e.c +++ b/src/html/houdini_href_e.c @@ -62,16 +62,8 @@ houdini_escape_href(gh_buf *ob, const uint8_t *src, size_t size) while (i < size && HREF_SAFE[src[i]] != 0) i++; - if (likely(i > org)) { - if (unlikely(org == 0)) { - if (i >= size) - return 0; - - gh_buf_grow(ob, HOUDINI_ESCAPED_SIZE(size)); - } - + if (likely(i > org)) gh_buf_put(ob, src + org, i - org); - } /* escaping */ if (i >= size) |