From 9d100814805c68eb51f6662c10e567f0debc7e4d Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Mon, 16 Oct 2006 15:55:33 +0000 Subject: [PATCH] Fixed usage of uninitialized variable warning svn path=/trunk/; revision=24549 --- reactos/lib/rtl/generictable.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reactos/lib/rtl/generictable.c b/reactos/lib/rtl/generictable.c index 7e5752a2efe..0c4c7a9a33a 100644 --- a/reactos/lib/rtl/generictable.c +++ b/reactos/lib/rtl/generictable.c @@ -34,7 +34,11 @@ RtlpFindGenericTableNodeOrParent(IN PRTL_GENERIC_TABLE Table, RTL_GENERIC_COMPARE_RESULTS Result; /* Quick check to see if the table is empty */ - if (RtlIsGenericTableEmpty(Table)) return TableEmptyTree; + if (RtlIsGenericTableEmpty(Table)) + { + *NodeOrParent = NULL; + return TableEmptyTree; + } /* Set the current node */ CurrentNode = Table->TableRoot;