From: Sung-jae Park Date: Tue, 21 Aug 2012 00:55:11 +0000 (+0900) Subject: Apply patchset about for prevent result X-Git-Tag: submit/tizen_mobile/20150512.125148^2~1^2~15^2~8^2~206 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e64b71360469d4aebd612416fdde9678adc47577;p=platform%2Fcore%2Fappfw%2Fdata-provider-slave.git Apply patchset about for prevent result CID 16424 livebox.c CID 13895 fault.c Change-Id: Iaa427ec8877ab490da6cf7ef7a27ae87a4ac5bb8 --- diff --git a/src/fault.c b/src/fault.c index d3f1f25..11bdf72 100644 --- a/src/fault.c +++ b/src/fault.c @@ -67,7 +67,7 @@ static void signal_handler(int signum, siginfo_t *info, void *unused) snprintf(log_fname, sizeof(log_fname), "/opt/share/live_magazine/log/slave.%d", getpid()); fd = open(log_fname, O_WRONLY|O_CREAT|O_SYNC, 0644); - if (fd > 0) { + if (fd >= 0) { if (write(fd, so_fname, strlen(so_fname)) != strlen(so_fname)) ErrPrint("Failed to recording the fault SO filename (%s)\n", so_fname); close(fd); diff --git a/src/livebox.c b/src/livebox.c index eaa8ac7..4ebddbd 100644 --- a/src/livebox.c +++ b/src/livebox.c @@ -557,9 +557,7 @@ int livebox_resize(const char *pkgname, const char *id, int w, int h) char *livebox_pinup(const char *pkgname, const char *id, int pinup) { - Eina_List *l; struct instance *inst; - struct item *item; char *ret; inst = so_find_instance(pkgname, id); @@ -568,13 +566,6 @@ char *livebox_pinup(const char *pkgname, const char *id, int pinup) return NULL; } - l = find_item(inst); - if (!l) { - ErrPrint("Instance is not found (%s - %s, pinup[%d])\n", pkgname, id, pinup); - return NULL; - } - - item = eina_list_data_get(l); ret = so_pinup(inst, pinup); return ret; }