From e64b71360469d4aebd612416fdde9678adc47577 Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Tue, 21 Aug 2012 09:55:11 +0900 Subject: [PATCH] Apply patchset about for prevent result CID 16424 livebox.c CID 13895 fault.c Change-Id: Iaa427ec8877ab490da6cf7ef7a27ae87a4ac5bb8 --- src/fault.c | 2 +- src/livebox.c | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) 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; } -- 2.7.4