Protect Edition against construction with NULL pointer.
authorMichael Andres <ma@suse.de>
Thu, 5 Feb 2009 23:20:23 +0000 (00:20 +0100)
committerMichael Andres <ma@suse.de>
Fri, 6 Feb 2009 11:02:08 +0000 (12:02 +0100)
zypp/Edition.cc

index ca66296..e3c3bb3 100644 (file)
@@ -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
   ///////////////////////////////////////////////////////////////////