Skip to content

Commit

Permalink
bugfix: initialize ASL to default value 1 to avoid randomized access …
Browse files Browse the repository at this point in the history
…rights
  • Loading branch information
dirk-zimoch committed Nov 20, 2023
1 parent 210b730 commit 8003ecf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gateAs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8003ecf

Please sign in to comment.