mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 22:16:16 +01:00
gio/tests/memory-output-stream.c: Avoid an uninitialized variable
Be a little bit more careful in regards to initializing a primitive type variable before passing it by reference, as it could have random stuff in the variable's address depending on the CRT, such as MSVCR110.DLL, causing random, invalid stuff being written in that address. This will fix this test when built with Visual Studio 2012. https://bugzilla.gnome.org/show_bug.cgi?id=711047
This commit is contained in:
parent
29b66e1458
commit
b9322bf9ab
@ -209,7 +209,7 @@ test_properties (void)
|
||||
int i;
|
||||
GError *error = NULL;
|
||||
gsize data_size_fun;
|
||||
gsize data_size_prop;
|
||||
gsize data_size_prop = 0;
|
||||
gpointer data_fun;
|
||||
gpointer data_prop;
|
||||
gpointer func;
|
||||
|
Loading…
Reference in New Issue
Block a user