From: yuseok.jeon Date: Fri, 20 Jun 2014 09:27:51 +0000 (+0900) Subject: Fix input value of fts_open in key-manager-util.cpp X-Git-Tag: accepted/tizen/common/20140925.172038~120 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b27898fd88187bd5d52ec7bf9fcc91e1dec8ccf3;p=platform%2Fcore%2Fsecurity%2Fkey-manager.git Fix input value of fts_open in key-manager-util.cpp Signed-off-by: yuseok.jeon --- diff --git a/src/manager/main/key-manager-util.cpp b/src/manager/main/key-manager-util.cpp index ee57ac7..ed21b46 100644 --- a/src/manager/main/key-manager-util.cpp +++ b/src/manager/main/key-manager-util.cpp @@ -137,10 +137,13 @@ STACK_OF(X509) *loadSystemCerts( const char * dirpath) { FTSENT *ftsent; char tmp[10]; STACK_OF(X509) *systemCerts = sk_X509_new_null(); - + const char *dir_path[2]; X509 *cert; - if (NULL == (fts = fts_open((char * const *) &dirpath, FTS_LOGICAL, NULL))) { + dir_path[0] = dirpath; + dir_path[1] = NULL; + + if (NULL == (fts = fts_open((char * const *) dir_path, FTS_LOGICAL, NULL))) { printf("Fail to open directories. dir=%s \n", dirpath); return NULL; }