fix svace issue 59/74759/1 accepted/tizen/common/20160615.193818 accepted/tizen/ivi/20160616.003306 accepted/tizen/mobile/20160616.003347 accepted/tizen/wearable/20160616.003331 submit/tizen/20160615.103002
authorJongkyu Koo <jk.koo@samsung.com>
Wed, 15 Jun 2016 11:22:26 +0000 (20:22 +0900)
committerJongkyu Koo <jk.koo@samsung.com>
Wed, 15 Jun 2016 11:22:26 +0000 (20:22 +0900)
Change-Id: I3d6696ecbb3e80984ea8d530ecb7aa2bd911240a
Signed-off-by: Jongkyu Koo <jk.koo@samsung.com>
server/db/ctsvc_db_plugin_person_helper.c

index 010bcc3..75b9e1b 100644 (file)
@@ -228,6 +228,10 @@ static inline const char* __ctsvc_get_image_filename(const char *src)
 {
        const char *dir = CTSVC_CONTACT_IMG_FULL_LOCATION;
        int pos = 0;
+
+       if (NULL == dir)
+               return src;
+
        while (dir[pos] == src[pos])
                pos++;