projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eacdee9
)
(get_charset_aliases): Don't try to free file_name
author
Jim Meyering
<jim@meyering.net>
Mon, 6 Mar 2000 11:19:23 +0000
(11:19 +0000)
committer
Jim Meyering
<jim@meyering.net>
Mon, 6 Mar 2000 11:19:23 +0000
(11:19 +0000)
if it's NULL (because we ran out of memory). From Bruno Haible.
lib/localcharset.c
patch
|
blob
|
history
diff --git
a/lib/localcharset.c
b/lib/localcharset.c
index 86f7ed1b2e09ba35cfad1de6e47ccc7155352952..e80a2c523991aea41240bc26e21ea2960a9fe05b 100644
(file)
--- a/
lib/localcharset.c
+++ b/
lib/localcharset.c
@@
-132,7
+132,8
@@
get_charset_aliases ()
}
charset_aliases = cp;
- free (file_name);
+ if (file_name != NULL)
+ free (file_name);
}
return cp;