Apply patchset about for prevent result
authorSung-jae Park <nicesj.park@samsung.com>
Tue, 21 Aug 2012 00:55:11 +0000 (09:55 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Tue, 21 Aug 2012 01:07:48 +0000 (10:07 +0900)
CID 16424 livebox.c
CID 13895 fault.c

Change-Id: Iaa427ec8877ab490da6cf7ef7a27ae87a4ac5bb8

src/fault.c
src/livebox.c

index d3f1f25..11bdf72 100644 (file)
@@ -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);
index eaa8ac7..4ebddbd 100644 (file)
@@ -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;
 }