From 3de73579235a6faf37f0676827b2dc92fee90415 Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 7 May 2014 15:36:14 +0000 Subject: [PATCH] removed warning about wrong string in Id constructor in case of null string git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7346 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/retroshare/rsids.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/retroshare/rsids.h b/libretroshare/src/retroshare/rsids.h index d293634ac..250e0ba2b 100644 --- a/libretroshare/src/retroshare/rsids.h +++ b/libretroshare/src/retroshare/rsids.h @@ -163,7 +163,8 @@ template t int n=0; if(s.length() != ID_SIZE_IN_BYTES*2) { - std::cerr << "t_RsGenericIdType<>::t_RsGenericIdType(std::string&): supplied string in constructor has wrong size." << std::endl; + if(!s.empty()) + std::cerr << "t_RsGenericIdType<>::t_RsGenericIdType(std::string&): supplied string in constructor has wrong size." << std::endl; clear(); return; }