diff options
Diffstat (limited to 'scheduler')
-rw-r--r-- | scheduler/cups-lpd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scheduler/cups-lpd.c b/scheduler/cups-lpd.c index 9df6bd0bd..798ee0588 100644 --- a/scheduler/cups-lpd.c +++ b/scheduler/cups-lpd.c @@ -230,8 +230,10 @@ main(int argc, /* I - Number of command-line arguments */ * resource list, and/or user name. */ - command = line[0]; - dest = line + 1; + if ((command = line[0]) == '\0') + dest = line; + else + dest = line + 1; if (command == 0x02) list = NULL; |