OSDN Git Service

change condition whether filter word is empty or not
authorornse01 <ornse01@users.sourceforge.jp>
Sun, 11 Sep 2011 05:48:49 +0000 (05:48 +0000)
committerornse01 <ornse01@users.sourceforge.jp>
Sun, 11 Sep 2011 05:48:49 +0000 (05:48 +0000)
git-svn-id: http://svn.sourceforge.jp/svnroot/bchan/bchanl/trunk@313 20a0b8eb-f62a-4a12-8fe1-b598822500fb

src/subjectlist.c

index a01962b..a20084a 100644 (file)
@@ -284,7 +284,7 @@ LOCAL W sbjtlist_copyarraywithfilter(sbjtlist_t *list, TC *filterword, W filterw
        sbjtlist_tuple_t *tuple;
 
        len = sbjtlist_originarray_length(&list->origin);
-       if (filterword != NULL) {
+       if (filterword_len > 0) {
                for (i = 0; i < len; i++) {
                        found = sbjtlist_originarray_getbyindex(&list->origin, i, &tuple);
                        if (found == False) {