Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
546961a9
Commit
546961a9
authored
Jan 31, 2011
by
Jim Meyering
Browse files
charset.c (load_charset_map): Don't deref NULL on failed malloc.
parent
32a400d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
src/ChangeLog
src/ChangeLog
+5
-0
src/charset.c
src/charset.c
+1
-1
No files found.
src/ChangeLog
View file @
546961a9
2011-01-31 Jim Meyering <meyering@redhat.com>
* charset.c (load_charset_map): Don't deref NULL on failed malloc.
Use xmalloc rather than malloc.
2011-01-30 Paul Eggert <eggert@cs.ucla.edu>
strftime: import from gnulib
src/charset.c
View file @
546961a9
...
...
@@ -292,7 +292,7 @@ load_charset_map (struct charset *charset, struct charset_map_entries *entries,
else
{
if
(
!
temp_charset_work
)
temp_charset_work
=
malloc
(
sizeof
(
*
temp_charset_work
));
temp_charset_work
=
x
malloc
(
sizeof
(
*
temp_charset_work
));
if
(
control_flag
==
1
)
{
memset
(
temp_charset_work
->
table
.
decoder
,
-
1
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment