]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c_locale.cc (facet::_S_create_c_locale): Fix warning.
authorJonathan Wakely <jwakely@redhat.com>
Wed, 21 May 2014 15:09:50 +0000 (16:09 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 21 May 2014 15:09:50 +0000 (16:09 +0100)
* config/locale/dragonfly/c_locale.cc (facet::_S_create_c_locale):
Fix warning.

From-SVN: r210716

libstdc++-v3/ChangeLog
libstdc++-v3/config/locale/dragonfly/c_locale.cc

index 4dfc38095f16ceee91416443e13c830d588b73c2..6dd9b785d4d9c9d439614ecb4795315237d56c2c 100644 (file)
@@ -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.
index 6c503db1809ea6df9d2dad0637f29e633cb8358a..b698f821ad8952456e49533b76280affe0cd9229 100644 (file)
@@ -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, '@');