Author: ekohl
Date: Thu Dec 4 13:37:53 2008
New Revision: 37858
URL:
http://svn.reactos.org/svn/reactos?rev=37858&view=rev
Log:
Sync to wine-1.1.1 (Patch 9 of 10):
- Alexandre Julliard <julliard(a)winehq.org> Mon, 7 Jul 2008
widl: Fix a couple of uninitialized variable compiler warnings.
Modified:
trunk/reactos/tools/widl/typegen.c
Modified: trunk/reactos/tools/widl/typegen.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/widl/typegen.c?rev=3…
==============================================================================
--- trunk/reactos/tools/widl/typegen.c [iso-8859-1] (original)
+++ trunk/reactos/tools/widl/typegen.c [iso-8859-1] Thu Dec 4 13:37:53 2008
@@ -984,7 +984,7 @@
{
unsigned int start, absoff, flags;
unsigned int align = 0, ualign = 0;
- const char *name;
+ const char *name = NULL;
type_t *utype = get_user_type(type, &name);
size_t usize = user_type_has_variable_size(utype) ? 0 : type_memsize(utype,
&ualign);
size_t size = type_memsize(type, &align);
@@ -2457,11 +2457,12 @@
static unsigned int get_required_buffer_size_type(
const type_t *type, const char *name, unsigned int *alignment)
{
+ const char *uname;
+ const type_t *utype;
+
*alignment = 0;
- if (is_user_type(type))
- {
- const char *uname;
- const type_t *utype = get_user_type(type, &uname);
+ if ((utype = get_user_type(type, &uname)))
+ {
return get_required_buffer_size_type(utype, uname, alignment);
}
else