Skip to content

Commit

Permalink
fix division by 0 error in findmodule
Browse files Browse the repository at this point in the history
fix possible uninitialised var error in findmodule and showmodule
  • Loading branch information
dmcoles committed Jul 10, 2024
1 parent 7f15a6d commit bf74f16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/FindModule/FindModule.e
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,11 @@ PROC search(mem,flen,filename:PTR TO CHAR) HANDLE
StrCopy(ptrRepText,'')
StrCopy(dimsText,'')
dimscount:=0
fl:=0
IF thisvers>=12
IF thisvers>=13
fl:=o[]++
ENDIF
ptrrep:=o[]++
WHILE (ptrrep>0)
StrAdd(ptrRepText,'PTR TO ')
Expand All @@ -203,9 +207,6 @@ PROC search(mem,flen,filename:PTR TO CHAR) HANDLE
ENDWHILE
ENDIF
IF thisvers>=6
IF thisvers>=13
fl:=o[]++
ENDIF
IF (c:=o[]++)>=0
IF c=0
IF match2 THEN WriteF(':\s\n',types[val])
Expand Down
1 change: 1 addition & 0 deletions tools/ShowModule/ShowModule.e
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ PROC process()
StrCopy(ptrRepText,'')
StrCopy(dimsText,'')
dimscount:=0
fl:=0
IF thisvers>=12
IF thisvers>=13
fl:=o[]++
Expand Down

0 comments on commit bf74f16

Please sign in to comment.