* hanja_table_match_prefix(), hanja_table_match_suffix()에서 table이
null이면 검색하지 않음
git-svn-id: http://kldp.net/svn/hangul/libhangul/trunk@160
8f00fcd2-89fc-0310-932e-
b01be5b65e01
if (key == NULL || key[0] == '\0')
return NULL;
+ if (table == NULL)
+ return NULL;
+
newkey = strdup(key);
p = strchr(newkey, '\0');
while (newkey[0] != '\0') {
if (key == NULL || key[0] == '\0')
return NULL;
+ if (table == NULL)
+ return NULL;
+
p = key;
while (p[0] != '\0') {
table->match(table, p, &ret);