This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Fix warning in dragonflybsd locale


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, '@');

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]