Removed bogus check in saftenTags()

Pointers cannot be compared to integers; comment didn't agree with code;
presumably correct code would have been "if(!dst) return 0;" but the function
is only called from one place, and 'dst' is never NULL.
This commit is contained in:
Ivan Skytte Jørgensen
2016-03-06 18:41:58 +01:00
parent 08d6a7a95c
commit b09bbd5b3a

@ -838,8 +838,6 @@ char *gb_strncasestr ( char *haystack , int32_t haystackSize , const char *needl
// . NULL terminates "s" if slen > 0
int32_t saftenTags ( char *dst , int32_t dstlen , const char *src , int32_t srclen ) {
char *start = dst ;
// bail if slen is 0
if ( dst <= 0 ) return 0;
// leave a char for the \0
char *dstend = dst + dstlen - 1;
const char *srcend = src + srclen;