summaryrefslogtreecommitdiff
path: root/lib/String.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/String.cc')
-rw-r--r--lib/String.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/String.cc b/lib/String.cc
index 3e801c7..22a9efb 100644
--- a/lib/String.cc
+++ b/lib/String.cc
@@ -162,6 +162,7 @@ const char * String::set(const ugly_string & s, ...) {
return r;
}
+#ifdef HAVE_VSSCANF
int String::scanf(const char * s, ...) const {
va_list ap;
int t;
@@ -189,6 +190,7 @@ int String::scanf(const ugly_string & s, ...) const {
va_end(ap);
return t;
}
+#endif
const char * String::to_charp(size_t from, ssize_t to) const {
if (to < 0) {
@@ -389,7 +391,7 @@ bool String::is_date(void) const {
(!extract(0, 1).is_number()) ||
(!extract(3, 4).is_number()) ||
(!extract(6, 9).is_number())) {
- return (isDateArgument(to_sqldate().str));
+ return (isDateArgument(to_sqldate().str) != 0);
}
return true;