This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[patch] Fix warning in dragonflybsd locale
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 21 May 2014 16:11:54 +0100
- Subject: [patch] Fix warning in dragonflybsd locale
- Authentication-results: sourceware.org; auth=none
Fixes a warning noticed during bootstrap.
I haven't run the dragonfly tests yet, but will do soon.
Committed to trunk.
commit 23b042935b1e179415179a6298df72d638280a27
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed May 21 16:08:28 2014 +0100
* config/locale/dragonfly/c_locale.cc (facet::_S_create_c_locale):
Fix warning.
diff --git a/libstdc++-v3/config/locale/dragonfly/c_locale.cc b/libstdc++-v3/config/locale/dragonfly/c_locale.cc
index 6c503db..b698f82 100644
--- a/libstdc++-v3/config/locale/dragonfly/c_locale.cc
+++ b/libstdc++-v3/config/locale/dragonfly/c_locale.cc
@@ -229,7 +229,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
char localspec[size__s + 6 + 1];
if (__s == NULL) {
- localspec[0] = NULL;
+ localspec[0] = '\0';
} else {
strcpy (localspec, __s);
char * pch = strchr (localspec, '@');