From 8003ecfabc2680e35f15633d0084e3657ba6c1e8 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Thu, 16 Nov 2023 14:53:25 +0100 Subject: [PATCH] bugfix: initialize ASL to default value 1 to avoid randomized access rights --- src/gateAs.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gateAs.cc b/src/gateAs.cc index 962347d..af84179 100644 --- a/src/gateAs.cc +++ b/src/gateAs.cc @@ -411,7 +411,6 @@ gateAsEntry* gateAs::findEntryInList(const char* pv, gateAsList& list) const int gateAs::readPvList(const char* lfile) { - int lev; int line=0; FILE* fd; char inbuf[GATE_MAX_PVLIST_LINE_LENGTH]; @@ -448,7 +447,7 @@ int gateAs::readPvList(const char* lfile) // Read all PV file lines while(fgets(inbuf,sizeof(inbuf),fd)) { - + int lev=1; ++line; pattern=rname=hname=NULL;