]> cvs.zerfleddert.de Git - usb-driver/blobdiff - usb-driver.c
programming is now abaout as fast as a parallel cable again
[usb-driver] / usb-driver.c
index 513fc3e41c5ec9c97123a44f17b65f6188ab86d3..b230afadc917a73ee45741c1faeca029c8975d26 100644 (file)
@@ -245,7 +245,7 @@ int do_wdioctl(int fd, unsigned int request, unsigned char *wdioctl) {
        switch(request & ~(0xc0000000)) {
                case VERSION:
                        version = (struct version_struct*)(wdheader->data);
-                       strcpy(version->version, "libusb-driver.so $Revision: 1.68 $");
+                       strcpy(version->version, "libusb-driver.so $Revision: 1.69 $");
                        version->versionul = 802;
                        DPRINTF("VERSION\n");
                        break;
@@ -276,6 +276,9 @@ int do_wdioctl(int fd, unsigned int request, unsigned char *wdioctl) {
 #else
 
                                pport = config_get((unsigned long)cr->Card.Item[0].I.IO.dwAddr / 0x10);
+                               if (!pport)
+                                       break;
+
                                ret = pport->open((unsigned long)cr->Card.Item[0].I.IO.dwAddr / 0x10);
 
                                ppbase = (unsigned long)cr->Card.Item[0].I.IO.dwAddr;
Impressum, Datenschutz