simplify code some more to make reddit happy
authorDavid Kalnischkies <david@kalnischkies.de>
Fri, 14 Feb 2014 15:33:26 +0000 (16:33 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Fri, 14 Feb 2014 18:14:45 +0000 (19:14 +0100)
commit8190b07a4b338e005fa30d769cb34f1fd29eaa45
tree68842a3e19556fa5bfe1daddc1d8a06177cf2dd2
parentdc95fee18e8df2b00404c7d0f321f5b78e00f170
simplify code some more to make reddit happy

Commit 6008b79adf1d7ea5607fab87a355d664c8725026 should have been guarded
by "Git-Dch: Ignore", but it wasn't and I only noticed it with the Close
message via deity thinking "hehe, I wonder if someone is gonna notice".
Looks like someone did: hats off to reddit user itisOmegakai!
Good to know that what I do isn't only monitored by goverments. :)

As there is another instance of basically the same code we just factor
out the code a bit and reuse, so its even cleaner and not only simpler.

Reported-By: scan-build
apt-pkg/contrib/fileutl.cc