nelisky 14 years ago
parent
commit
3067a414fc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libztex.c

+ 1 - 1
libztex.c

@@ -408,7 +408,7 @@ int libztex_scanDevices (struct libztex_dev_list*** devs_p) {
     devs[pos]->dev = ztex;
     devs[pos]->next = NULL;
     if (pos > 0) {
-      devs[pos]->next = devs[pos];
+      devs[pos-1]->next = devs[pos];
     }
     pos++;
   }