The local variable 'libnameptr' is used from the 'goto done;' label cleanup but it may not be initiailzied at the time of the first use of the label. When evaluating this I also notice the global 'calmaErrorFile' when closed does not have the handle invalidated. CalmaRead.c:233:9: warning: variable 'libnameptr' is used uninitialized whenever 'if' condition is true CalmaRead.c:231:9: warning: variable 'libnameptr' is used uninitialized whenever 'if' condition is true CalmaRead.c:225:9: warning: variable 'libnameptr' is used uninitialized whenever 'if' condition is true clang18 -Wall warning cleanup [-Wsometimes-uninitialized] |
||
|---|---|---|
| .. | ||
| CalmaRdcl.c | ||
| CalmaRdio.c | ||
| CalmaRdpt.c | ||
| CalmaRead.c | ||
| CalmaWrite.c | ||
| CalmaWriteZ.c | ||
| Makefile | ||
| calma.h | ||
| calmaInt.h | ||