projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f33038
)
silence some false-alarm uninitialised warnings
author
Ryan Lortie
<desrt@desrt.ca>
Sun, 21 Mar 2010 19:17:21 +0000
(14:17 -0500)
committer
Ryan Lortie
<desrt@desrt.ca>
Sun, 21 Mar 2010 19:17:21 +0000
(14:17 -0500)
glib/gvariant-parser.c
patch
|
blob
|
history
diff --git
a/glib/gvariant-parser.c
b/glib/gvariant-parser.c
index
362909a
..
45d2695
100644
(file)
--- a/
glib/gvariant-parser.c
+++ b/
glib/gvariant-parser.c
@@
-1550,6
+1550,10
@@
number_get_value (AST *ast,
ast_set_error (ast, error, NULL, "number too big for any type");
return NULL;
}
+
+ /* silence uninitialised warnings... */
+ negative = FALSE;
+ abs_val = 0;
}
else
{
@@
-1568,6
+1572,9
@@
number_get_value (AST *ast,
if (abs_val == 0)
negative = FALSE;
+
+ /* silence uninitialised warning... */
+ dbl_val = 0.0;
}
if (*end != '\0')