Skip to content

Commit 4ed0485

Browse files
committed
Crash on NULL again in system table check.
1 parent f8ff1ee commit 4ed0485

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/catalog/catalog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/catalog/catalog.c,v 1.35 2000/10/21 18:41:51 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/catalog/catalog.c,v 1.36 2000/10/22 05:14:01 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -173,7 +173,7 @@ GetDatabasePath(Oid tblNode)
173173
bool
174174
IsSystemRelationName(const char *relname)
175175
{
176-
if (relname && relname[0] && relname[1] && relname[2])
176+
if (relname[0] && relname[1] && relname[2])
177177
return (relname[0] == 'p' &&
178178
relname[1] == 'g' &&
179179
relname[2] == '_');

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy