- Fix to check right pointer
Change-Id: I3f6f110ee799281ec2119368845203bf4ef10064
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
if (request->updateinfo_handle->version)
free(request->updateinfo_handle->version);
request->updateinfo_handle->version = strdup(version);
- if (request->updateinfo_handle->pkgid == NULL)
+ if (request->updateinfo_handle->version == NULL)
return package_manager_error(PACKAGE_MANAGER_ERROR_OUT_OF_MEMORY, __FUNCTION__, NULL);
return PACKAGE_MANAGER_ERROR_NONE;