From: Tom Lane Date: Mon, 13 Dec 2021 04:44:44 +0000 (-0500) Subject: Suppress uninitialized-variable warning in guc.c. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=60ca4eec8dc7569e267844aac302174a9ec14801;p=thirdparty%2Fpostgresql.git Suppress uninitialized-variable warning in guc.c. Back-patch 26812bcaa into 9.5, to suppress one more warning in out-of-support branches. (Doesn't appear to be needed before 9.5.) Discussion: https://postgr.es/m/d0316012-ece7-7b7e-2d36-9c38cb77cb3b@enterprisedb.com --- diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 76e0e171c89..6662f4be707 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -9124,6 +9124,8 @@ RestoreGUCState(void *gucstate) if (varsourcefile[0]) read_gucstate_binary(&srcptr, srcend, &varsourceline, sizeof(varsourceline)); + else + varsourceline = 0; read_gucstate_binary(&srcptr, srcend, &varsource, sizeof(varsource)); read_gucstate_binary(&srcptr, srcend,