From: Sunmin Lee Date: Thu, 13 Sep 2018 07:53:08 +0000 (+0900) Subject: Linking libcurl for plugin X-Git-Tag: submit/tizen/20180914.005919^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4aa973820e32bcd688bf9f167ca7b80882535aba;p=platform%2Fcore%2Fsystem%2Fupdate-control.git Linking libcurl for plugin The plugin library needs to be linked with libcurl. Change-Id: I49b933457dcb45abb280909f4e832801cd419ca3 Signed-off-by: Sunmin Lee --- diff --git a/packaging/update-control.spec b/packaging/update-control.spec index f31b950..58ca3e8 100644 --- a/packaging/update-control.spec +++ b/packaging/update-control.spec @@ -17,6 +17,7 @@ BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(message-port) BuildRequires: pkgconfig(bundle) BuildRequires: pkgconfig(alarm-service) +BuildRequires: pkgconfig(libcurl) %description An Update Control library in Tizen C API diff --git a/src/plugin/CMakeLists.txt b/src/plugin/CMakeLists.txt index de9f5ab..340c56d 100644 --- a/src/plugin/CMakeLists.txt +++ b/src/plugin/CMakeLists.txt @@ -22,6 +22,7 @@ SET(requires dlog gio-2.0 alarm-service + libcurl ) INCLUDE(FindPkgConfig) diff --git a/src/plugin/plugin.c b/src/plugin/plugin.c index a317437..f960b05 100644 --- a/src/plugin/plugin.c +++ b/src/plugin/plugin.c @@ -729,6 +729,9 @@ API int update_control_get_property(update_control_property_e property, void **v { _D("FN CALLED>>>>>>>>>>>>>>>>>>"); + retvm_if(!value, UPDATE_CONTROL_ERROR_INVALID_PARAMETER, + "value is NULL"); + #ifdef DEBUG_MODE if (debug_mode) switch (property) {