diff -r 8ffc32c648e2 -r 5963746558e7 razor.c --- a/razor.c Thu Sep 13 10:51:39 2007 -0400 +++ b/razor.c Thu Sep 13 10:54:13 2007 -0400 @@ -855,6 +855,7 @@ if (strcmp(name, "name") == 0) { ctx->state = YUM_STATE_PACKAGE_NAME; } else if (strcmp(name, "version") == 0) { + version = NULL; for (i = 0; atts[i]; i += 2) { if (strcmp(atts[i], "ver") == 0) version = atts[i + 1];