[uim-commit] r902 - trunk/uim
ekato at freedesktop.org
ekato at freedesktop.org
Wed Jun 22 03:36:17 PDT 2005
Author: ekato
Date: 2005-06-22 03:36:15 -0700 (Wed, 22 Jun 2005)
New Revision: 902
Modified:
trunk/uim/skk-dic.c
Log:
* uim/skk-dic.c (nth_candidate) : Plug leak.
(compose_line_parts) : Ditto.
Modified: trunk/uim/skk-dic.c
===================================================================
--- trunk/uim/skk-dic.c 2005-06-21 07:36:26 UTC (rev 901)
+++ trunk/uim/skk-dic.c 2005-06-22 10:36:15 UTC (rev 902)
@@ -373,7 +373,7 @@
str++;
}
}
- if (!str) {
+ if (*str == '\0') {
return NULL;
}
if (*str == '/') {
@@ -496,7 +496,7 @@
nth = 0;
do {
tmp = nth_candidate(line, nth);
- if (tmp && strlen(tmp)) {
+ if (tmp) {
if (tmp[0] == '[') {
tmp[0] = ' '; /* create first_space */
compose_line_parts(di, sl, okuri_in_bracket(&tmp[1]), &tmp[0]);
More information about the uim-commit
mailing list