|
Jiří Popelka |
edc04b |
diff -up cups-1.4.3/cups/dest.c.str3503 cups-1.4.3/cups/dest.c
|
|
Jiří Popelka |
edc04b |
--- cups-1.4.3/cups/dest.c.str3503 2010-03-31 13:31:42.000000000 +0200
|
|
Jiří Popelka |
edc04b |
+++ cups-1.4.3/cups/dest.c 2010-03-31 13:32:52.000000000 +0200
|
|
Jiří Popelka |
edc04b |
@@ -553,7 +553,7 @@ cupsGetNamedDest(http_t *http, /* I
|
|
Jiří Popelka |
aef63a |
|
|
Jiří Popelka |
aef63a |
if (!cups_get_sdests(http, op, name, 0, &dest))
|
|
Jiří Popelka |
aef63a |
{
|
|
Jiří Popelka |
edc04b |
- if (op == CUPS_GET_DEFAULT || name)
|
|
Jiří Popelka |
d9fac8 |
+ if (op == CUPS_GET_DEFAULT || (name && !set_as_default))
|
|
Jiří Popelka |
aef63a |
return (NULL);
|
|
Jiří Popelka |
aef63a |
|
|
Jiří Popelka |
aef63a |
/*
|