tests: sniffing: Avoid loop with uninitialised length
authorRobert Swain <robert.swain@collabora.co.uk>
Tue, 31 Jan 2012 12:58:56 +0000 (13:58 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 8 Feb 2012 10:06:58 +0000 (10:06 +0000)
commitacea05b62d360a3eab638b45bdd8ced247702bcc
treed33b4c04d09867310504d4569dbe1bfa5cf1e62a
parent69fba5f4f987e73f1968152501088ef640ab43a7
tests: sniffing: Avoid loop with uninitialised length

[This would only happen if a request was made to an unhandled path,
which this test doesn't do, but it seems reasonable to return an empty
response rather than crashing. -smcv]

Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Dan Winship <danw@gnome.org>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=669479
Bug-NB: NB#297634
tests/sniffing-test.c