aboutsummaryrefslogtreecommitdiff
path: root/src/timezone/scheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/timezone/scheck.c')
-rw-r--r--src/timezone/scheck.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/timezone/scheck.c b/src/timezone/scheck.c
index 230fefc6c43..acc4cb5bc87 100644
--- a/src/timezone/scheck.c
+++ b/src/timezone/scheck.c
@@ -1,9 +1,9 @@
/*
* This file is in the public domain, so clarified as of
- * 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov).
+ * 2006-07-17 by Arthur David Olson.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/timezone/scheck.c,v 1.8 2007/10/26 13:30:10 tgl Exp $
+ * $PostgreSQL: pgsql/src/timezone/scheck.c,v 1.9 2008/02/16 21:16:04 tgl Exp $
*/
#include "postgres_fe.h"
@@ -11,18 +11,17 @@
#include "private.h"
-char *
+const char *
scheck(const char *string, const char *format)
{
char *fbuf;
const char *fp;
char *tp;
int c;
- char *result;
+ const char *result;
char dummy;
- static char nada;
- result = &nada;
+ result = "";
if (string == NULL || format == NULL)
return result;
fbuf = imalloc((int) (2 * strlen(format) + 4));