Browse Source

Added empty string checks

experimental/5.2-WITH_DRCP
Ilia Alshanetsky 19 years ago
parent
commit
4f46c4e90f
  1. 5
      ext/sqlite/libsqlite/src/encode.c

5
ext/sqlite/libsqlite/src/encode.c

@ -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;

Loading…
Cancel
Save