From: jomui Date: Wed, 17 Jun 2015 12:00:08 +0000 (+0900) Subject: fixed error X-Git-Tag: submit/tizen/20150703.074644^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0851a7d94a6df955b89bf9e68414b05ad0ab2524;p=platform%2Fcore%2Flocation%2Fgeofence-dbus.git fixed error Signed-off-by: jomui Change-Id: I0c4b2c237d80fe40b650ba010e96e9855fb3a410 --- diff --git a/AUTHORS b/AUTHORS index 0bc9dd3..5410330 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,5 +1,5 @@ -Woo-Young Kim -Bono Koo -Ki-Sun SHIN -bosung kwak -Areum Choi \ No newline at end of file +Jongmun Woo +Young-Ae Kang +Kyoungjun Sung +Karthik Paulraj +VENKATAKOTIVIJAYALAKSHMINARAYA \ No newline at end of file diff --git a/packaging/geofence-dbus.spec b/packaging/geofence-dbus.spec index 0a295d8..b44c2ea 100644 --- a/packaging/geofence-dbus.spec +++ b/packaging/geofence-dbus.spec @@ -6,7 +6,7 @@ Group: Location/Libraries License: Apache-2.0 Source0: geofence-dbus-%{version}.tar.gz -%if "%{?tizen_profile_name}" == "tv" +%if "%{?profile}" == "tv" ExcludeArch: %{arm} %ix86 x86_64 %endif @@ -62,9 +62,9 @@ make %{?jobs:-j%jobs} rm -rf %{buildroot} %make_install -%post -p /sbin/ldconfig +%post -n libgeofence-dbus -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%postun -n libgeofence-dbus -p /sbin/ldconfig %files -n libgeofence-dbus diff --git a/server/src/geofence_dbus_server.c b/server/src/geofence_dbus_server.c index 3158a61..254d00b 100644 --- a/server/src/geofence_dbus_server.c +++ b/server/src/geofence_dbus_server.c @@ -14,6 +14,7 @@ */ #include +#include #include "generated-code.h" #include "geofence_dbus_server.h" @@ -411,7 +412,8 @@ static void on_bus_acquired(GDBusConnection *conn, const gchar *name, gpointer u /* register callback for each methods for geofence */ geofence = sloc_object_get_geofence(SLOC_OBJECT(ctx->obj_skeleton)); } - g_return_if_fail(geofence); + if (geofence == NULL) + return; if (ctx->add_geofence_cb) ctx->add_geofence_h = g_signal_connect(geofence, "handle-add-geofence", G_CALLBACK(on_add_geofence), ctx); /* user_data */