[med-svn] [aghermann] 38/85: don't try to save empty patterns even if no such thing exists
andrei zavada
hmmr-guest at alioth.debian.org
Thu Sep 26 23:46:28 UTC 2013
This is an automated email from the git hooks/post-receive script.
hmmr-guest pushed a commit to branch master
in repository aghermann.
commit 3f15569d7bbf2487f090fdceaaf5df33d3c38c38
Author: Andrei Zavada <johnhommer at gmail.com>
Date: Sun Sep 15 02:30:21 2013 +0300
don't try to save empty patterns even if no such thing exists
---
upstream/src/aghermann/patterns/patterns.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/upstream/src/aghermann/patterns/patterns.cc b/upstream/src/aghermann/patterns/patterns.cc
index 35ca0b8..47a4a1a 100644
--- a/upstream/src/aghermann/patterns/patterns.cc
+++ b/upstream/src/aghermann/patterns/patterns.cc
@@ -43,6 +43,8 @@ save()
if ( saved || origin == agh::TExpDirLevel::transient || origin == agh::TExpDirLevel::system )
return 0;
+ if ( thing.size() == 0 ) {
+ fprintf( stderr, "save_pattern(\"%s\"): thing is empty\n", path().c_str());
if ( agh::fs::mkdir_with_parents( agh::fs::dirname(path)) ) {
fprintf( stderr, "save_pattern(\"%s\"): mkdir failed\n", path.c_str());
return -1;
--
Alioth's /git/debian-med/git-commit-notice on /srv/git.debian.org/git/debian-med/aghermann.git
More information about the debian-med-commit
mailing list