diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-03-13 02:48:32 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-03-13 02:48:32 +0000 |
| commit | 692f9e2951a8bf600f95bb0b76c18df71c881504 (patch) | |
| tree | 740b3d2853bfd7ea47d86f4d20024a0647caec53 /src/lib | |
| parent | 1a1d4b22589d5832dd594a65054d9261f9f496cf (diff) | |
Ignore empty KDM email addresses (#818).
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/util.cc | 6 | ||||
| -rw-r--r-- | src/lib/util.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index 61c9dac06..6f366257c 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -636,3 +636,9 @@ relaxed_string_to_float (string s) return lexical_cast<float> (s); } } + +bool +string_not_empty (string s) +{ + return !s.empty (); +} diff --git a/src/lib/util.h b/src/lib/util.h index 640933f00..142b21e96 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -75,5 +75,6 @@ extern std::map<std::string, std::string> split_get_request (std::string url); extern std::string video_asset_filename (boost::shared_ptr<dcp::PictureAsset> asset); extern std::string audio_asset_filename (boost::shared_ptr<dcp::SoundAsset> asset); extern float relaxed_string_to_float (std::string); +extern bool string_not_empty (std::string); #endif |
