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
This commit is contained in:
Jonathan Wakely 2014-05-21 16:09:50 +01:00 committed by Jonathan Wakely
parent 21e2806a8f
commit ab65e21ab2
2 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,9 @@
* testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
Likewise. Likewise.
* config/locale/dragonfly/c_locale.cc (facet::_S_create_c_locale):
Fix warning.
2014-05-21 John Marino <gnugcc@marino.st> 2014-05-21 John Marino <gnugcc@marino.st>
* acinclude.m4 (*-*-dragonfly*): New target. * acinclude.m4 (*-*-dragonfly*): New target.

View File

@ -229,7 +229,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
char localspec[size__s + 6 + 1]; char localspec[size__s + 6 + 1];
if (__s == NULL) { if (__s == NULL) {
localspec[0] = NULL; localspec[0] = '\0';
} else { } else {
strcpy (localspec, __s); strcpy (localspec, __s);
char * pch = strchr (localspec, '@'); char * pch = strchr (localspec, '@');