ref: refs/heads/master
commit 08c168c2d4c8ffd94d238c3bc79a050622d885c1
Author: Michael Andres
Date: Fri Feb 6 00:20:23 2009 +0100
Protect Edition against construction with NULL pointer.
---
zypp/Edition.cc | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/zypp/Edition.cc b/zypp/Edition.cc
index ca66296..e3c3bb3 100644
--- a/zypp/Edition.cc
+++ b/zypp/Edition.cc
@@ -40,6 +40,13 @@ namespace zypp
: ret );
}
+ inline std::string makeevrstr( const char * version_r,
+ const char * release_r,
+ Edition::epoch_t epoch_r )
+ { return makeevrstr( std::string(version_r?version_r:""),
+ std::string(release_r?release_r:""),
+ epoch_r );
+ }
/////////////////////////////////////////////////////////////////
} // namespace
///////////////////////////////////////////////////////////////////
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org