]> git.saurik.com Git - apt.git/commit
use SPtrArray handling instead of explicit delete[]
authorDavid Kalnischkies <david@kalnischkies.de>
Thu, 6 Mar 2014 00:31:55 +0000 (01:31 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Thu, 13 Mar 2014 12:58:45 +0000 (13:58 +0100)
commit500dc0700136092692d1cceba4e5c1639bcfc825
tree259834e8492eea23680ab7766a99b1daba5b0c99
parenta02db58fd50ef7fc2f0284852c6b3f98e458a232
use SPtrArray handling instead of explicit delete[]

The warning message from gcc doesn't make that much sense in my reading
as there is no loop which could overflow here, but it is better to use
our SPtrArray wrapping anyway which fixes the warning as well.

warning: cannot optimize loop, the loop counter may overflow [-Wunsafe-loop-optimizations]
   delete[] Dsc;

Git-Dch: Ignore
Reported-By: gcc -Wunsafe-loop-optimizations
cmdline/apt-get.cc