Fix undefined behavior in TUI's TAB expansion
authorEli Zaretskii <eliz@gnu.org>
Sat, 21 Mar 2015 08:48:34 +0000 (10:48 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 21 Mar 2015 08:48:34 +0000 (10:48 +0200)
commitb1a0f704950296b2363192ba91999eef3635700f
treefd91de14f8f27ef1e257ab77f488b8028d4bcea1
parent5da7e675cd2acbbe2d2a614b17eeb2d02b5d331f
Fix undefined behavior in TUI's TAB expansion

gdb/ChangeLog:

* tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
before the second loop, to avoid undefined behavior.  Reported by
Anton Blanchard <anton@samba.org>.
gdb/ChangeLog
gdb/tui/tui-io.c