projects
/
pspp
/ 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]
/
src
/
ui
/
gui
/
psppire.c
diff --git
a/src/ui/gui/psppire.c
b/src/ui/gui/psppire.c
index a1f48e7b64d016f1cee8c5fb4b13c2be0bcf6af4..7a369a607d6acd44f3755d354c51b08c3bf3c0d1 100644
(file)
--- a/
src/ui/gui/psppire.c
+++ b/
src/ui/gui/psppire.c
@@
-294,7
+294,7
@@
parse_non_options (int key, char *arg, struct argp_state *state)
if ( local_is_utf8)
{
- utf8 = strdup (arg);
+ utf8 =
x
strdup (arg);
}
else
{
@@
-324,7
+324,7
@@
parse_non_options (int key, char *arg, struct argp_state *state)
g_free (utf8);
if ( filename == NULL)
- filename = strdup (arg);
+ filename =
x
strdup (arg);
psppire_window_load (PSPPIRE_WINDOW (the_data_window), filename);