Fix warning.
authorKristian Høgsberg <krh@redhat.com>
Thu, 13 Sep 2007 14:54:13 +0000 (10:54 -0400)
committerKristian Høgsberg <krh@redhat.com>
Thu, 13 Sep 2007 14:54:13 +0000 (10:54 -0400)
razor.c

diff --git a/razor.c b/razor.c
index 2ef102d..671515c 100644 (file)
--- a/razor.c
+++ b/razor.c
@@ -855,6 +855,7 @@ yum_start_element(void *data, const char *name, const char **atts)
        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];