Blame cups-str3285_v2-str3503.patch
|
Jiří Popelka |
aef63a |
diff -up cups-1.4.1/cups/dest.c.str3285 cups-1.4.1/cups/dest.c
|
|
Jiří Popelka |
aef63a |
--- cups-1.4.1/cups/dest.c.str3285 2009-10-27 12:50:04.560012076 +0000
|
|
Jiří Popelka |
aef63a |
+++ cups-1.4.1/cups/dest.c 2009-10-27 12:50:23.814012173 +0000
|
|
Jiří Popelka |
aef63a |
@@ -549,7 +549,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 |
aef63a |
- if (op == CUPS_GET_DEFAULT)
|
|
Jiří Popelka |
d9fac8 |
+ if (op == CUPS_GET_DEFAULT || (name && !set_as_default))
|
|
Jiří Popelka |
aef63a |
return (NULL);
|
|
Jiří Popelka |
aef63a |
|
|
Jiří Popelka |
aef63a |
/*
|