From b27898fd88187bd5d52ec7bf9fcc91e1dec8ccf3 Mon Sep 17 00:00:00 2001 From: "yuseok.jeon" Date: Fri, 20 Jun 2014 18:27:51 +0900 Subject: [PATCH] Fix input value of fts_open in key-manager-util.cpp Signed-off-by: yuseok.jeon --- src/manager/main/key-manager-util.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; } -- 2.7.4