diff options
Diffstat (limited to 'hardinfo2/vendor.c')
-rw-r--r-- | hardinfo2/vendor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hardinfo2/vendor.c b/hardinfo2/vendor.c index 1515c379..0897341a 100644 --- a/hardinfo2/vendor.c +++ b/hardinfo2/vendor.c @@ -119,13 +119,13 @@ void vendor_init(void) gchar *tmp; gint num_vendors; - DEBUG("loading vendor.conf"); + DEBUG("loading %s", path); vendors = g_key_file_new(); if (g_key_file_load_from_file(vendors, path, 0, NULL)) { num_vendors = g_key_file_get_integer(vendors, "vendors", "number", NULL); - for (i = num_vendors--; i >= 0; i--) { + for (i = num_vendors - 1; i >= 0; i--) { Vendor *v = g_new0(Vendor, 1); tmp = g_strdup_printf("vendor%d", i); |