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:
Emmanuele Bassi 2019-02-18 09:50:26 +00:00
parent 8423e59e95
commit f011be9c4b

View File

@ -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 */