summaryrefslogtreecommitdiff
path: root/src/lib/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-03-13 02:48:32 +0000
committerCarl Hetherington <cth@carlh.net>2016-03-13 02:48:32 +0000
commit692f9e2951a8bf600f95bb0b76c18df71c881504 (patch)
tree740b3d2853bfd7ea47d86f4d20024a0647caec53 /src/lib/util.cc
parent1a1d4b22589d5832dd594a65054d9261f9f496cf (diff)
Ignore empty KDM email addresses (#818).
Diffstat (limited to 'src/lib/util.cc')
-rw-r--r--src/lib/util.cc6
1 files changed, 6 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 ();
+}