setupapi/tests: remove unused variable
Austin English
austinenglish at gmail.com
Wed Jul 21 02:27:18 CDT 2010
I tried using key instead, but for some parts of the loop, key is
NULL, for others, it has an inconsistent value.
--
-Austin
-------------- next part --------------
diff --git a/dlls/setupapi/tests/parser.c b/dlls/setupapi/tests/parser.c
index 072ac97..53f7cc0 100644
--- a/dlls/setupapi/tests/parser.c
+++ b/dlls/setupapi/tests/parser.c
@@ -406,7 +406,7 @@ static const char *check_key( INFCONTEXT *context, const char *wanted )
static void test_key_names(void)
{
char buffer[MAX_INF_STRING_LENGTH+32];
- const char *key, *line;
+ const char *line;
unsigned int i, index, count;
UINT err_line;
HINF hinf;
@@ -426,7 +426,7 @@ static void test_key_names(void)
ret = SetupFindFirstLineA( hinf, "Test", 0, &context );
assert( ret );
- key = check_key( &context, key_names[i].key );
+ check_key( &context, key_names[i].key );
buffer[0] = buffer[1] = 0; /* build the full line */
for (index = 0; ; index++)
More information about the wine-patches
mailing list