mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Added empty string checks
This commit is contained in:
parent
51bca1b406
commit
4f46c4e90f
1 changed files with 4 additions and 1 deletions
|
@ -176,6 +176,9 @@ int sqlite_decode_binary(const unsigned char *in, unsigned char *out){
|
||||||
int i, e;
|
int i, e;
|
||||||
unsigned char c;
|
unsigned char c;
|
||||||
e = *(in++);
|
e = *(in++);
|
||||||
|
if (e == 0) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
i = 0;
|
i = 0;
|
||||||
while( (c = *(in++))!=0 ){
|
while( (c = *(in++))!=0 ){
|
||||||
if (c == 1) {
|
if (c == 1) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue