From 61e2f97417818125d7627c562d0164e4e949a47e Mon Sep 17 00:00:00 2001 From: Attila Kovacs Date: Tue, 10 Dec 2024 13:52:06 +0100 Subject: [PATCH] Some poor initializers --- src/postgres-backend.c | 2 +- src/smax-postgres.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/postgres-backend.c b/src/postgres-backend.c index da17359..92f9259 100644 --- a/src/postgres-backend.c +++ b/src/postgres-backend.c @@ -731,7 +731,7 @@ static int getEnclosingStringLength(const XField *f, int sampling) { * or else NULL if there was an error. */ static TableDescriptor *addVariable(const char *id, const Variable *u) { - ENTRY e = { NULL }, *added = NULL; + ENTRY e = { NULL, NULL }, *added = NULL; TableDescriptor *desc; int idx; diff --git a/src/smax-postgres.c b/src/smax-postgres.c index 13f3031..0561b0d 100644 --- a/src/smax-postgres.c +++ b/src/smax-postgres.c @@ -77,7 +77,7 @@ int main(int argc, const char *argv[]) { {"debug", 'd', POPT_ARG_NONE, &debug, 0, "Turn on console debug messages", NULL}, {"version", 'v', POPT_ARG_NONE, &version, 0, "Print version info only", NULL}, POPT_AUTOHELP - {NULL} + {} }; poptContext optCon = poptGetContext("smax-postgres", argc, argv, options, 0);