]> mj.ucw.cz Git - pciutils.git/blobdiff - setpci.c
pciids, not ids.
[pciutils.git] / setpci.c
index 3efd1965292c33449613f743b88341c529853de3..497538a5b9d73658f23255001378e812137e613f 100644 (file)
--- a/setpci.c
+++ b/setpci.c
@@ -1,9 +1,9 @@
 /*
 /*
- *     $Id: setpci.c,v 1.10 1999/12/04 12:32:57 mj Exp $
+ *     $Id: setpci.c,v 1.12 2002/03/30 15:39:24 mj Exp $
  *
  *     Linux PCI Utilities -- Manipulate PCI Configuration Registers
  *
  *
  *     Linux PCI Utilities -- Manipulate PCI Configuration Registers
  *
- *     Copyright (c) 1998 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
+ *     Copyright (c) 1998 Martin Mares <mj@ucw.cz>
  *
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
  *
  *     Can be freely distributed and used under the terms of the GNU GPL.
  */
@@ -327,7 +327,7 @@ next:
            usage();
          if (c[2])
            d = (c[2] == '=') ? c+3 : c+2;
            usage();
          if (c[2])
            d = (c[2] == '=') ? c+3 : c+2;
-         else if (argc)
+         else if (argc > 1)
            {
              argc--;
              argv++;
            {
              argc--;
              argv++;