aboutsummaryrefslogtreecommitdiff
path: root/src/mm-sim.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-11-30 15:25:37 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-12-03 16:45:41 +0100
commitb39ae775d6c13474d0c3b74acfd642a420f1faba (patch)
tree8d5cc54b33a3347524d2bb26011dea93c3c0011e /src/mm-sim.c
parent1e23fe62fe80a7351760bfb7fe9eeba7631d882b (diff)
serial: clear serial info struct before calling ioctl()
We need the kernel driver to give a proper value for the 'closing_wait' variable, but don't assume it will. This should solve the following kind of issues reported by valgrind: ==8985== Conditional jump or move depends on uninitialised value(s) ==8985== at 0x4409A6: mm_serial_port_close (mm-serial-port.c:932) ==8985== by 0x41A420: disable_all_done (mm-generic-cdma.c:753) ==8985== by 0x4125A4: mm_manager_shutdown (mm-manager.c:1130) ==8985== by 0x40DE35: main (main.c:203)
Diffstat (limited to 'src/mm-sim.c')
0 files changed, 0 insertions, 0 deletions