X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Ftimezone.c;h=cc499097e59167f4c294f684ad7800b79934abbb;hb=dd3cccc5e67548dcc2dd6c6254ed6c97859085d5;hp=8e912670e9c2ed35579c0c08648cece33f5c8788;hpb=6b2381a2adabea7d8309ff158ef675ff88184305;p=platform%2Fupstream%2Fconnman.git diff --git a/src/timezone.c b/src/timezone.c index 8e91267..cc49909 100644 --- a/src/timezone.c +++ b/src/timezone.c @@ -187,7 +187,10 @@ static char *find_origin(void *src_map, struct stat *src_st, subpath, d->d_name); if (compare_file(src_map, src_st, pathname) == 0) { - str = g_strdup_printf("%s/%s", + if (!subpath) + str = g_strdup(d->d_name); + else + str = g_strdup_printf("%s/%s", subpath, d->d_name); closedir(dir); return str;