risnull-fix-ctxdiff.patch
text/x-patch
Filename: risnull-fix-ctxdiff.patch
Type: text/x-patch
Part: 0
Patch
Format: context
| File | + | − |
|---|---|---|
| src/interfaces/ecpg/ecpglib/misc.c | 6 | 4 |
*** pgsql.4/src/interfaces/ecpg/ecpglib/misc.c.old 2009-11-19 19:50:38.000000000 +0100
--- pgsql.4/src/interfaces/ecpg/ecpglib/misc.c 2009-11-19 19:51:23.000000000 +0100
***************
*** 364,373 ****
static bool
_check(unsigned char *ptr, int length)
{
! for (; length > 0 && ptr[--length] == 0xff;);
! if (length <= 0)
! return true;
! return false;
}
bool
--- 364,375 ----
static bool
_check(unsigned char *ptr, int length)
{
! int i;
! for (i = 0; i < length && ptr[i] == 0xff; i++)
! ;
! if (i < length)
! return false;
! return true;
}
bool