Skip to content

Commit f174545

Browse files
committed
fixed codestyle
1 parent 3884a04 commit f174545

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/backend/utils/adt/agtype.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,11 @@ static agtype_value *tostring_helper(Datum arg, Oid type, char *msghdr);
184184

185185
void *repalloc_check(void *ptr, size_t len)
186186
{
187-
if (ptr)
187+
if (ptr != NULL)
188+
{
188189
return repalloc(ptr, len);
190+
}
191+
189192
return palloc(len);
190193
}
191194

0 commit comments

Comments
 (0)