• Erwin Janssen's avatar
    Fixed use of unitialized variable in lefty · 1ef7b1f7
    Erwin Janssen authored
    In the file cmd/lefty/ws/x11/gquery.c, function Gqwpopaction:
    THe char c is declared without initializer, giving it a unpredictable
    value. If the next if statement takes the false branch, the function where
    c is set is not executed. The next if statement then checks `c != 13`, but
    because C could have any value, the behavior is unpredictable.
    Initializing c with a known value, such as 0, fixes the problem.
    1ef7b1f7
Name
Last commit
Last update
..
aix_mods Loading commit data...
cs2l Loading commit data...
dot2l Loading commit data...
examples Loading commit data...
os Loading commit data...
ws Loading commit data...
LOG Loading commit data...
Makefile.am Loading commit data...
code.c Loading commit data...
code.h Loading commit data...
colors.txt Loading commit data...
common.c Loading commit data...
common.h Loading commit data...
display.c Loading commit data...
display.h Loading commit data...
exec.c Loading commit data...
exec.h Loading commit data...
g.c Loading commit data...
g.h Loading commit data...
gfxview.c Loading commit data...
gfxview.h Loading commit data...
internal.c Loading commit data...
internal.h Loading commit data...
lefty.1 Loading commit data...
lefty.c Loading commit data...
lefty.psp Loading commit data...
lefty.vcxproj Loading commit data...
lefty.vcxproj.filters Loading commit data...
leftyio.h Loading commit data...
lex.c Loading commit data...
lex.h Loading commit data...
mem.c Loading commit data...
mem.h Loading commit data...
parse.c Loading commit data...
parse.h Loading commit data...
str.c Loading commit data...
str.h Loading commit data...
tbl.c Loading commit data...
tbl.h Loading commit data...
txtview.c Loading commit data...
txtview.h Loading commit data...