projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add "x" prefix to calls to plain malloc(), calloc(), strdup(), realloc().
[pspp-builds.git]
/
src
/
libpspp
/
i18n.c
diff --git
a/src/libpspp/i18n.c
b/src/libpspp/i18n.c
index c0459712e71480dba9503aaa9260a28ac115f4c6..a4e9b63f755ed8e6abd6b611567c03e1d02b5fea 100644
(file)
--- a/
src/libpspp/i18n.c
+++ b/
src/libpspp/i18n.c
@@
-198,7
+198,7
@@
i18n_init (void)
#endif /* ENABLE_NLS */
assert (default_encoding == NULL);
#endif /* ENABLE_NLS */
assert (default_encoding == NULL);
- default_encoding = strdup (locale_charset ());
+ default_encoding =
x
strdup (locale_charset ());
hmapx_init (&map);
}
hmapx_init (&map);
}
@@
-214,7
+214,7
@@
void
set_default_encoding (const char *enc)
{
free (default_encoding);
set_default_encoding (const char *enc)
{
free (default_encoding);
- default_encoding = strdup (enc);
+ default_encoding =
x
strdup (enc);
}
}
@@
-228,13
+228,13
@@
set_encoding_from_locale (const char *loc)
bool ok = true;
char *c_encoding;
char *loc_encoding;
bool ok = true;
char *c_encoding;
char *loc_encoding;
- char *tmp = strdup (setlocale (LC_CTYPE, NULL));
+ char *tmp =
x
strdup (setlocale (LC_CTYPE, NULL));
setlocale (LC_CTYPE, "C");
setlocale (LC_CTYPE, "C");
- c_encoding = strdup (locale_charset ());
+ c_encoding =
x
strdup (locale_charset ());
setlocale (LC_CTYPE, loc);
setlocale (LC_CTYPE, loc);
- loc_encoding = strdup (locale_charset ());
+ loc_encoding =
x
strdup (locale_charset ());
if ( 0 == strcmp (loc_encoding, c_encoding))
if ( 0 == strcmp (loc_encoding, c_encoding))
@@
-297,7
+297,7
@@
get_system_decimal (void)
{
char radix_char;
{
char radix_char;
- char *ol = strdup (setlocale (LC_NUMERIC, NULL));
+ char *ol =
x
strdup (setlocale (LC_NUMERIC, NULL));
setlocale (LC_NUMERIC, "");
#if HAVE_NL_LANGINFO
setlocale (LC_NUMERIC, "");
#if HAVE_NL_LANGINFO