aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2014-05-21 16:09:50 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2014-05-21 16:09:50 +0100
commitab65e21ab28c2e9a9955d3b7ede92cf2ffbb2a1c (patch)
tree2083bbbb3867cd952c8b71feaee87f4201561af4 /libstdc++-v3
parent21e2806a8fe040eaf8e1a2be5dcc75828e90f1ce (diff)
downloadgcc-ab65e21ab28c2e9a9955d3b7ede92cf2ffbb2a1c.zip
gcc-ab65e21ab28c2e9a9955d3b7ede92cf2ffbb2a1c.tar.gz
gcc-ab65e21ab28c2e9a9955d3b7ede92cf2ffbb2a1c.tar.bz2
c_locale.cc (facet::_S_create_c_locale): Fix warning.
* config/locale/dragonfly/c_locale.cc (facet::_S_create_c_locale): Fix warning. From-SVN: r210716
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog3
-rw-r--r--libstdc++-v3/config/locale/dragonfly/c_locale.cc2
2 files changed, 4 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 4dfc380..6dd9b78 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -7,6 +7,9 @@
* testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
Likewise.
+ * config/locale/dragonfly/c_locale.cc (facet::_S_create_c_locale):
+ Fix warning.
+
2014-05-21 John Marino <gnugcc@marino.st>
* acinclude.m4 (*-*-dragonfly*): New target.
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, '@');