MFB: Added empty string checks

This commit is contained in:
Ilia Alshanetsky 2006-12-24 20:50:21 +00:00
parent 2185635e10
commit 59b437aff8

View file

@ -176,9 +176,12 @@ int sqlite_decode_binary(const unsigned char *in, unsigned char *out){
int i, e;
unsigned char c;
e = *(in++);
if (e == 0) {
return 0;
}
i = 0;
while( (c = *(in++))!=0 ){
if( c==1 ){
if (c == 1) {
c = *(in++) - 1;
}
out[i++] = c + e;