Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-01-29 22:38:22 +0300
committerCorinna Vinschen <corinna@vinschen.de>2010-01-29 22:38:22 +0300
commit0b189c1ef3d77cbda07d04f7ecef80dc104ce9a5 (patch)
tree4fe24a3a120e60317604401a76177a65f0e30b28 /winsup/cygwin/libc
parentd5c4cd3f6ce4023376c550f74656303a425bdcd4 (diff)
* libc/strfmon.c (__setup_vars): Test for an empty string rather than
for a NULL pointer.
Diffstat (limited to 'winsup/cygwin/libc')
-rw-r--r--winsup/cygwin/libc/strfmon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/libc/strfmon.c b/winsup/cygwin/libc/strfmon.c
index ac23aa05b..79f8ab461 100644
--- a/winsup/cygwin/libc/strfmon.c
+++ b/winsup/cygwin/libc/strfmon.c
@@ -419,7 +419,7 @@ __setup_vars(int flags, char *cs_precedes, char *sep_by_space,
*cs_precedes = lc->int_n_cs_precedes;
*sep_by_space = lc->int_n_sep_by_space;
*sign_posn = (flags & PARENTH_POSN) ? 0 : lc->int_n_sign_posn;
- *signstr = (lc->negative_sign == NULL) ? negative
+ *signstr = (*lc->negative_sign == '\0') ? negative
: lc->negative_sign;
} else if (flags & USE_INTL_CURRENCY) {
*cs_precedes = lc->int_p_cs_precedes;
@@ -430,7 +430,7 @@ __setup_vars(int flags, char *cs_precedes, char *sep_by_space,
*cs_precedes = lc->n_cs_precedes;
*sep_by_space = lc->n_sep_by_space;
*sign_posn = (flags & PARENTH_POSN) ? 0 : lc->n_sign_posn;
- *signstr = (lc->negative_sign == NULL) ? negative
+ *signstr = (*lc->negative_sign == '\0') ? negative
: lc->negative_sign;
} else {
*cs_precedes = lc->p_cs_precedes;