[Pkg-privacy-commits] [libgsecuredelete] 51/168: Performances improvement in count_files()
Ulrike Uhlig
u-guest at moszumanska.debian.org
Thu Jul 7 20:06:39 UTC 2016
This is an automated email from the git hooks/post-receive script.
u-guest pushed a commit to branch master
in repository libgsecuredelete.
commit 7aebe8352d39dfed8fd09efb6637413d14aaf143
Author: Colomban Wendling <ban at herbesfolles.org>
Date: Tue Feb 23 03:48:21 2010 +0100
Performances improvement in count_files()
No need to own the directory's entry name, it only leads to useless
data copying.
---
gsecuredelete/delete-operation.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gsecuredelete/delete-operation.vala b/gsecuredelete/delete-operation.vala
index 0136416..ce91f1b 100644
--- a/gsecuredelete/delete-operation.vala
+++ b/gsecuredelete/delete-operation.vala
@@ -100,8 +100,8 @@ namespace Gsd
if (FileUtils.test (path, FileTest.IS_DIR)) {
try {
- var dir = Dir.open (path);
- string name;
+ var dir = Dir.open (path);
+ unowned string name;
while ((name = dir.read_name ()) != null) {
n_files += count_files (Path.build_filename (path, name, null));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/libgsecuredelete.git
More information about the Pkg-privacy-commits
mailing list