aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/mssql/traits.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/mssql/traits.cxx b/odb/mssql/traits.cxx
index fcec95c..120c197 100644
--- a/odb/mssql/traits.cxx
+++ b/odb/mssql/traits.cxx
@@ -49,7 +49,7 @@ namespace odb
// Figure out the length. We cannot use strlen since it may
// not be 0-terminated (strnlen is not standard).
//
- for (n = 0; n != N && v[n] != '\0'; ++n);
+ for (n = 0; n != N && v[n] != '\0'; ++n) ;
if (n > c)
n = c;
@@ -237,7 +237,7 @@ namespace odb
// Figure out the length. We cannot use wcslen since it may
// not be 0-terminated (wcsnlen is not standard).
//
- for (n = 0; n != N && v[n] != L'\0'; ++n);
+ for (n = 0; n != N && v[n] != L'\0'; ++n) ;
if (n > c)
n = c;