From: InHong Han Date: Fri, 24 Apr 2020 11:35:11 +0000 (+0900) Subject: Fix invalid condition check X-Git-Tag: accepted/tizen/5.5/unified/20200426.232237~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F45%2F231845%2F1;p=platform%2Fcore%2Fuifw%2Fcapi-ui-sticker.git Fix invalid condition check Change-Id: Ifccd8a1252d05c160d88192594f00c8100dae770 --- diff --git a/consumer/sticker_consumer.c b/consumer/sticker_consumer.c index 8f6c03f..1c11f19 100644 --- a/consumer/sticker_consumer.c +++ b/consumer/sticker_consumer.c @@ -539,7 +539,7 @@ EXPORT_API int sticker_consumer_add_recent_data(sticker_consumer_h consumer_hand int ret; - if (!consumer_handle || !data_handle || (data_handle->sticker_info_id > 0) || !data_handle->uri) + if (!consumer_handle || !data_handle || (data_handle->sticker_info_id <= 0) || !data_handle->uri) return STICKER_ERROR_INVALID_PARAMETER; ret = sticker_dbus_insert_recent_sticker_info(consumer_handle->gdbus_connection, data_handle->sticker_info_id);