diff options
Diffstat (limited to 'src/cms/cms_enc.cpp')
-rw-r--r-- | src/cms/cms_enc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cms/cms_enc.cpp b/src/cms/cms_enc.cpp index 2413676d7..3437c15e3 100644 --- a/src/cms/cms_enc.cpp +++ b/src/cms/cms_enc.cpp @@ -17,7 +17,7 @@ namespace Botan { */ void CMS_Encoder::set_data(const byte buf[], u32bit length) { - if(data.has_items()) + if(!data.empty()) throw Invalid_State("Cannot call CMS_Encoder::set_data here"); data.set(buf, length); |