diff mbox

Fix warning in dragonflybsd locale

Message ID 20140521151154.GC6953@redhat.com
State New
Headers show

Commit Message

Jonathan Wakely May 21, 2014, 3:11 p.m. UTC
Fixes a warning noticed during bootstrap.

I haven't run the dragonfly tests yet, but will do soon.
Committed to trunk.
diff mbox

Patch

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