mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Initialize a variable
Compilers get confused when variables are initialized by a function by taking them as reference in an out argument; this, coupled with the fact that C does not initialize variables by default, most commonly results in a "maybe uninitialized" compiler warning.
This commit is contained in:
parent
8423e59e95
commit
f011be9c4b
@ -1860,7 +1860,7 @@ test_strinfo (void)
|
||||
"\0\0\0\xff";
|
||||
const guint32 *strinfo = (guint32 *) array;
|
||||
guint length = sizeof array / 4;
|
||||
guint result;
|
||||
guint result = 0;
|
||||
|
||||
{
|
||||
/* build it and compare */
|
||||
|
Loading…
Reference in New Issue
Block a user