From: Mateusz Moscicki Date: Tue, 16 Apr 2019 14:32:31 +0000 (+0200) Subject: Fix get application name from path X-Git-Tag: accepted/tizen/unified/20190426.054201~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ef1928ef6ecbd850f1fa9d474802441be7b82e5;p=platform%2Fcore%2Fsystem%2Fcrash-worker.git Fix get application name from path Change-Id: Icaa926c23ebc52af502ccb94e35090008281be95 --- diff --git a/src/crash-manager/so-info.c b/src/crash-manager/so-info.c index cab1398..bc1720b 100644 --- a/src/crash-manager/so-info.c +++ b/src/crash-manager/so-info.c @@ -353,8 +353,7 @@ end: char* get_app_name_from_path(const char *file_path) { static const char *prefix[] = {"/usr/apps/", - "/opt/usr/globalapps/", - NULL}; + "/opt/usr/globalapps/"}; for (size_t i = 0; i < ARRAY_SIZE(prefix); i++) { if (strncmp(file_path, prefix[i], strlen(prefix[i])) != 0)