mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-25 19:37:52 +02: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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user