[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS shishi/lib
From: |
shishi-commit |
Subject: |
CVS shishi/lib |
Date: |
Fri, 12 Nov 2004 02:20:43 +0100 |
Update of /home/cvs/shishi/lib
In directory dopio:/tmp/cvs-serv3788
Modified Files:
error.c
Log Message:
Fix mem leak.
Fix warning.
--- /home/cvs/shishi/lib/error.c 2004/11/09 19:39:20 1.36
+++ /home/cvs/shishi/lib/error.c 2004/11/12 01:20:42 1.37
@@ -96,7 +96,7 @@
const char *
shishi_strerror (int err)
{
- char *p = NULL;
+ const char *p = _("Unknown error");
size_t i;
for (i = 0; _shishi_error_messages[i].errorcode != -1; i++)
@@ -106,10 +106,6 @@
break;
}
- if (!p)
- /* XXX mem leak */
- asprintf (&p, _("Unknown shishi error: %d"), err);
-
return p;
}
- CVS shishi/lib, (continued)
- CVS shishi/lib, shishi-commit, 2004/11/09
- CVS shishi/lib, shishi-commit, 2004/11/09
- CVS shishi/lib, shishi-commit, 2004/11/09
- CVS shishi/lib, shishi-commit, 2004/11/09
- CVS shishi/lib, shishi-commit, 2004/11/09
- CVS shishi/lib, shishi-commit, 2004/11/09
- CVS shishi/lib, shishi-commit, 2004/11/09
- CVS shishi/lib, shishi-commit, 2004/11/09
- CVS shishi/lib, shishi-commit, 2004/11/09
- CVS shishi/lib, shishi-commit, 2004/11/11
- CVS shishi/lib,
shishi-commit <=