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
/
data
/
dictionary.c
diff --git
a/src/data/dictionary.c
b/src/data/dictionary.c
index b5b6cca58f19bbf1732eae911379f0d4606caf3f..2dd1dfc4641108a08deb9b3e054acb7e872e53da 100644
(file)
--- a/
src/data/dictionary.c
+++ b/
src/data/dictionary.c
@@
-1,5
+1,5
@@
/* PSPP - a program for statistical analysis.
/* PSPP - a program for statistical analysis.
- Copyright (C) 1997-9, 2000, 2006, 2007 Free Software Foundation, Inc.
+ Copyright (C) 1997-9, 2000, 2006, 2007
, 2009
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-79,7
+79,7
@@
void
dict_set_encoding (struct dictionary *d, const char *enc)
{
if (enc)
dict_set_encoding (struct dictionary *d, const char *enc)
{
if (enc)
- d->encoding = strdup (enc);
+ d->encoding =
x
strdup (enc);
}
const char *
}
const char *
@@
-213,7
+213,7
@@
dict_clone (const struct dictionary *s)
d->vector[i] = vector_clone (s->vector[i], s, d);
if ( s->encoding)
d->vector[i] = vector_clone (s->vector[i], s, d);
if ( s->encoding)
- d->encoding = strdup (s->encoding);
+ d->encoding =
x
strdup (s->encoding);
dict_set_attributes (d, dict_get_attributes (s));
dict_set_attributes (d, dict_get_attributes (s));