projects
/
dosdemo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce7eae9
)
uninitialized variable in logger
author
John Tsiombikas
<nuclear@member.fsf.org>
Tue, 10 May 2022 23:36:46 +0000
(
02:36
+0300)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Tue, 10 May 2022 23:36:46 +0000
(
02:36
+0300)
src/dos/logger.c
patch
|
blob
|
history
diff --git
a/src/dos/logger.c
b/src/dos/logger.c
index
2d61070
..
1976770
100644
(file)
--- a/
src/dos/logger.c
+++ b/
src/dos/logger.c
@@
-49,6
+49,7
@@
int print_tail(const char *fname)
if(!(fp = fopen(fname, "r"))) {
return -1;
}
+ wr = rd = 0;
lineoffs[wr++] = 0;
while(fgets(buf, sizeof buf, fp)) {
lineoffs[wr] = ftell(fp);