commit | 4d73199c0641ae9daecbadead30d116725a8284c | [log] [tgz] |
---|---|---|
author | Keisuke Kuroyanagi <ksk@google.com> | Wed Mar 12 06:51:42 2014 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Wed Mar 12 06:51:43 2014 +0000 |
tree | d14a841e49385d6f5559583c4402cb5c4e2daaef | |
parent | 4bc35daaa2ebfb099b2f912ca67e77bd8e98fbb7 [diff] | |
parent | 61467744e7d2240abc8792ce1840d6914ef90793 [diff] |
Merge "Unit test update for I7ed95a54344d8b."
diff --git a/native/jni/src/suggest/policyimpl/dictionary/utils/file_utils.cpp b/native/jni/src/suggest/policyimpl/dictionary/utils/file_utils.cpp index 9441a75..fb80f38 100644 --- a/native/jni/src/suggest/policyimpl/dictionary/utils/file_utils.cpp +++ b/native/jni/src/suggest/policyimpl/dictionary/utils/file_utils.cpp
@@ -68,6 +68,9 @@ if (dirent->d_type == DT_DIR) { continue; } + if (strcmp(dirent->d_name, ".") == 0 || strcmp(dirent->d_name, "..") == 0) { + continue; + } const int filePathBufSize = getFilePathBufSize(dirPath, dirent->d_name); char filePath[filePathBufSize]; getFilePath(dirPath, dirent->d_name, filePathBufSize, filePath);