]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/cacheset.cc
honor option to disable pulses for the testcases
[apt.git] / apt-pkg / cacheset.cc
index 0147f7e8662845656c48d90ddd110c8cc0b36ae6..29281aab93569636a66cfb9d77f3e2058544cc1f 100644 (file)
@@ -73,6 +73,8 @@ bool PackageContainerInterface::FromTask(PackageContainerInterface * const pci,
                const char *start, *end;
                parser.GetRec(start,end);
                unsigned int const length = end - start;
+               if (unlikely(length == 0))
+                  continue;
                char buf[length];
                strncpy(buf, start, length);
                buf[length-1] = '\0';