]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cgi-bin/printers.c
Load cups into easysw/current.
[thirdparty/cups.git] / cgi-bin / printers.c
index 0b4a3a8cba1c66e92691b88b08b52df867e34a33..74b950d56d3a1479643f41ab2ca4e212ef2388db 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: printers.c 5160 2006-02-24 01:14:18Z mike $"
+ * "$Id: printers.c 5202 2006-02-28 19:37:03Z mike $"
  *
  *   Printer status CGI for the Common UNIX Printing System (CUPS).
  *
@@ -87,8 +87,13 @@ main(int  argc,                              /* I - Number of command-line arguments */
   */
 
   if ((printer = getenv("PATH_INFO")) != NULL)
+  {
     printer ++;
 
+    if (!*printer)
+      printer = NULL;
+  }
+
  /*
   * See who is logged in...
   */
@@ -633,5 +638,5 @@ show_printer(http_t     *http,              /* I - Connection to server */
 
 
 /*
- * End of "$Id: printers.c 5160 2006-02-24 01:14:18Z mike $".
+ * End of "$Id: printers.c 5202 2006-02-28 19:37:03Z mike $".
  */