Skip to content
Snippets Groups Projects
Commit 14cc1ed7 authored by Michael Meskes's avatar Michael Meskes
Browse files

Made function better readable.

parent 6e3117c3
No related branches found
No related tags found
No related merge requests found
/* $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 $ */
#define POSTGRES_ECPG_INTERNAL #define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h" #include "postgres_fe.h"
...@@ -364,10 +364,11 @@ ECPGset_noind_null(enum ECPGttype type, void *ptr) ...@@ -364,10 +364,11 @@ ECPGset_noind_null(enum ECPGttype type, void *ptr)
static bool static bool
_check(unsigned char *ptr, int length) _check(unsigned char *ptr, int length)
{ {
for (; length > 0 && ptr[--length] == 0xff;); for (length--; length >= 0; length--)
if (length <= 0) if (ptr[length] != 0xff)
return true; return false;
return false;
return true;
} }
bool bool
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment