summaryrefslogtreecommitdiffstats
path: root/python_modules/codegen.py
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-28 13:30:18 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-28 13:30:18 +0200
commit1b41d15a99dfcddb99975d17cfbcd61d8870a887 (patch)
tree24a000624b3de8074281f84d0bf49b5900db6ae3 /python_modules/codegen.py
parentfb24e4e28bad0b0e2bb670deb9fb56223be49ada (diff)
downloadspice-common-1b41d15a99dfcddb99975d17cfbcd61d8870a887.tar.gz
spice-common-1b41d15a99dfcddb99975d17cfbcd61d8870a887.tar.xz
spice-common-1b41d15a99dfcddb99975d17cfbcd61d8870a887.zip
Fix harmless warnings in quic_encode()
The quic code has been changed recently this way: - ASSERT(encoder->usr, line); + if (line == NULL) { + spice_warn_if_reached(); + return QUIC_ERROR; + } It appears that the only caller of quic_encode() gives a NULL line and rely on the more_lines() callback to return new lines instead. Adjust the code accordingly, adding a few more checks to verify the caller gives/returns correct values.
Diffstat (limited to 'python_modules/codegen.py')
0 files changed, 0 insertions, 0 deletions