openbsd-ports/print/hplip/patches/patch-io_hpmud_hpmud_c
2011-08-30 08:55:55 +00:00

15 lines
454 B
Plaintext

$OpenBSD: patch-io_hpmud_hpmud_c,v 1.1 2011/08/30 08:55:55 ajacoutot Exp $
https://bugs.launchpad.net/hplip/+bug/689755
--- io/hpmud/hpmud.c.orig Tue Aug 30 10:36:47 2011
+++ io/hpmud/hpmud.c Tue Aug 30 10:37:03 2011
@@ -305,6 +305,7 @@ static int new_device(const char *uri, enum HPMUD_IO_M
{
BUG("invalid uri %s\n", uri);
*result = HPMUD_R_INVALID_URI;
+ index = 0;
goto bugout;
}
msp->device[i].io_mode = mode;