spice-common/common
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
..
backtrace.c build: Remove spice_common.h 2018-07-06 06:46:15 +01:00
backtrace.h Unify headers guard names 2018-11-26 11:20:57 +00:00
canvas_base.c canvas_base: Change spice_warning to g_warning 2018-07-12 05:48:12 +01:00
canvas_base.h Unify headers guard names 2018-11-26 11:20:57 +00:00
canvas_utils.c build: Remove spice_common.h 2018-07-06 06:46:15 +01:00
canvas_utils.h Unify headers guard names 2018-11-26 11:20:57 +00:00
client_marshallers.h Unify headers guard names 2018-11-26 11:20:57 +00:00
demarshallers.h Unify headers guard names 2018-11-26 11:20:57 +00:00
draw.h Unify headers guard names 2018-11-26 11:20:57 +00:00
lines.c miLineArc(): initialize edge1, edge2 2018-05-10 10:05:41 -05:00
lines.h Unify headers guard names 2018-11-26 11:20:57 +00:00
log.c log: Remove SPICE_DISABLE_ABORT 2018-07-06 06:46:05 +01:00
log.h Unify headers guard names 2018-11-26 11:20:57 +00:00
lz_common.h Unify headers guard names 2018-11-26 11:20:57 +00:00
lz_compress_tmpl.c lz: Inline GET_{r,g,b} macros 2018-05-25 11:54:18 +01:00
lz_config.h Unify headers guard names 2018-11-26 11:20:57 +00:00
lz_decompress_tmpl.c lz: Simplify code 2018-01-18 10:08:43 +00:00
lz.c build: Remove spice_common.h 2018-07-06 06:46:15 +01:00
lz.h Unify headers guard names 2018-11-26 11:20:57 +00:00
macros.h Unify headers guard names 2018-11-26 11:20:57 +00:00
Makefile.am utils: Add genum -> string helpers 2018-11-23 10:25:01 +00:00
marshaller.c marshaller: Fix a possible leak 2018-06-27 21:44:05 +01:00
marshaller.h Unify headers guard names 2018-11-26 11:20:57 +00:00
mem.c build: Remove spice_common.h 2018-07-06 06:46:15 +01:00
mem.h Unify headers guard names 2018-11-26 11:20:57 +00:00
meson.build utils: Add genum -> string helpers 2018-11-23 10:25:01 +00:00
messages.h Unify headers guard names 2018-11-26 11:20:57 +00:00
pixman_utils.c pixman: Use g_error() rather than g_abort() 2018-07-06 18:11:54 +02:00
pixman_utils.h Unify headers guard names 2018-11-26 11:20:57 +00:00
quic_config.h Unify headers guard names 2018-11-26 11:20:57 +00:00
quic_family_tmpl.c quic: Call encode from golomb_coding 2018-07-03 19:37:39 +01:00
quic_tmpl.c quic: Unify rgb/non-rgb macro declarations 2018-07-10 10:34:57 +01:00
quic.c quic: Prevent side effects calling C macros 2018-09-10 12:44:17 +02:00
quic.h Unify headers guard names 2018-11-26 11:20:57 +00:00
rect.h Unify headers guard names 2018-11-26 11:20:57 +00:00
region.c test-region: Create proper test for region from source code 2018-06-27 13:17:41 +01:00
region.h Unify headers guard names 2018-11-26 11:20:57 +00:00
ring.h Unify headers guard names 2018-11-26 11:20:57 +00:00
rop3.c build: Remove spice_common.h 2018-07-06 06:46:15 +01:00
rop3.h Unify headers guard names 2018-11-26 11:20:57 +00:00
snd_codec.c snd: Replace spice_printerr() use with g_warning 2018-06-28 13:39:52 +02:00
snd_codec.h Unify headers guard names 2018-11-26 11:20:57 +00:00
ssl_verify.c Use a single copy of subject string 2018-12-19 11:31:13 +00:00
ssl_verify.h Unify headers guard names 2018-11-26 11:20:57 +00:00
sw_canvas.c swcanvas: Remove canvas_create() 2018-07-04 10:04:02 +02:00
sw_canvas.h Unify headers guard names 2018-11-26 11:20:57 +00:00
utils.c utils: Add genum -> string helpers 2018-11-23 10:25:01 +00:00
utils.h utils: Add genum -> string helpers 2018-11-23 10:25:01 +00:00
verify.h Adjust verify.h licence 2016-06-21 12:26:38 +02:00