OSDN Git Service

* src/lharc.c (xstrdup): no need to call fatal_error().
[lha/lha.git] / src / lharc.c
index 135db34..78a4c4d 100644 (file)
@@ -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;
 }