From 4ed04855b0967e204aea44d2a511158f72920e85 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 22 Oct 2000 05:14:01 +0000 Subject: [PATCH] Crash on NULL again in system table check. --- src/backend/catalog/catalog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/catalog/catalog.c b/src/backend/catalog/catalog.c index 6ee2ee6a12..c7b191dd2d 100644 --- a/src/backend/catalog/catalog.c +++ b/src/backend/catalog/catalog.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/catalog/catalog.c,v 1.35 2000/10/21 18:41:51 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/catalog/catalog.c,v 1.36 2000/10/22 05:14:01 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -173,7 +173,7 @@ GetDatabasePath(Oid tblNode) bool IsSystemRelationName(const char *relname) { - if (relname && relname[0] && relname[1] && relname[2]) + if (relname[0] && relname[1] && relname[2]) return (relname[0] == 'p' && relname[1] == 'g' && relname[2] == '_'); -- 2.40.0