10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e3117c commit 14cc1edCopy full SHA for 14cc1ed
src/interfaces/ecpg/ecpglib/misc.c
@@ -1,4 +1,4 @@
1
-/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.52 2009/09/18 13:13:32 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.53 2009/11/24 16:30:31 meskes Exp $ */
2
3
#define POSTGRES_ECPG_INTERNAL
4
#include "postgres_fe.h"
@@ -364,10 +364,11 @@ ECPGset_noind_null(enum ECPGttype type, void *ptr)
364
static bool
365
_check(unsigned char *ptr, int length)
366
{
367
- for (; length > 0 && ptr[--length] == 0xff;);
368
- if (length <= 0)
369
- return true;
370
- return false;
+ for (length--; length >= 0; length--)
+ if (ptr[length] != 0xff)
+ return false;
+
371
+ return true;
372
}
373
374
bool
0 commit comments