OSDN Git Service
(root)
/
lha
/
lha.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* src/lharc.c (xstrdup): no need to call fatal_error().
[lha/lha.git]
/
src
/
lharc.c
diff --git
a/src/lharc.c
b/src/lharc.c
index
135db34
..
78a4c4d
100644
(file)
--- a/
src/lharc.c
+++ b/
src/lharc.c
@@
-627,8
+627,6
@@
xstrdup(str)
{
int len = strlen(str);
char *p = (char *)xmalloc(len + 1);
- if (!p)
- fatal_error("Not enough memory");
strcpy(p, str);
return p;
}