summaryrefslogtreecommitdiff
path: root/cmdline/apt-extracttemplates.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2017-01-27 12:30:13 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2017-01-27 21:06:09 +0100
commit2f8f58512dbb478f23149b57d33f788c26c04445 (patch)
treea604c7511f0eb6a4369ae094366c809fea0b8f38 /cmdline/apt-extracttemplates.cc
parent4c02370f5558e93afc554318f917468983df35f6 (diff)
avoid malloc if option whitelist is disabled (default)
Config options are checked in various paths, so making "useless" memory allocations wastes time and can also cause problems like #852757. The unneeded malloc was added in ae73a2944a89e0d2406a2aab4a4c082e1e9da3f9. (We have no explicit malloc here – its std:string doing this internally)
Diffstat (limited to 'cmdline/apt-extracttemplates.cc')
0 files changed, 0 insertions, 0 deletions