]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/filter.c
Squashed compiler warnings about code with no effect
[pciutils.git] / lib / filter.c
index e66a470e075dc2617edb12b0a281d09e13b2c472..eb375c49022d4e3e7b347befda47de3e0a318b08 100644 (file)
@@ -39,7 +39,7 @@ pci_filter_parse_slot(struct pci_filter *f, char *str)
          bus = colon2;
          if (str[0] && strcmp(str, "*"))
            {
-             long int x = strtol(bus, &e, 16);
+             long int x = strtol(str, &e, 16);
              if ((e && *e) || (x < 0 || x > 0xffff))
                return "Invalid domain number";
              f->domain = x;