Go to file
Frediano Ziglio 2d32025f77 Use a single copy of subject string
A full copy can keep both the key and the value instead of allocating
twice the memory.
We are parsing key1=val1,key2=val2,... and in doing that, we currently
store 'key1' in key, and 'val1' in val, and then 'key2', 'val2', and so
on.
After this patch, we store 'key1\0val1\0' in key, which fits and saves
some memory.
Also this removes a warning produced by Coverity that is assuming that
allocating strlen(string_variable) is wrong.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2018-12-19 11:31:13 +00:00
build-aux build-sys: make it a seperately buildable spice-common library 2012-03-22 20:21:05 +01:00
common Use a single copy of subject string 2018-12-19 11:31:13 +00:00
docs Fix some additional typos 2018-11-28 07:57:31 +00:00
m4 Update --enable-celt051 help string 2018-12-12 16:27:18 +00:00
python_modules Create common header for demarshallers declarations 2018-10-15 13:31:16 +01:00
tests test-region: Add missing dependencies 2018-12-17 12:18:48 +00:00
.gitlab-ci.yml ci: Run tests on Windows using wine 2018-12-17 12:18:48 +00:00
.gitmodules Remove spice-protocol submodule 2015-08-11 10:26:06 +02:00
autogen.sh Remove files moved to spice-protocol 2015-08-11 10:26:06 +02:00
configure.ac build: Remove bitops.h 2018-06-05 14:10:22 +01:00
COPYING Remove trailing whitespace 2015-12-18 11:41:15 +01:00
git.mk build: Update git.mk to latest version 2018-06-18 14:08:03 +01:00
Makefile.am proto: Remove support for SPICE version 1 2018-09-28 09:00:03 +01:00
meson_options.txt Meson: Make use of 'feature' option type introduced in version 0.47 2018-07-27 10:31:53 +01:00
meson.build proto: Remove support for SPICE version 1 2018-09-28 09:00:03 +01:00
spice_codegen.py codegen: Fix license name 2017-05-18 16:40:36 +01:00
spice.proto proto: Remove support for SPICE version 1 2018-09-28 09:00:03 +01:00