g_variant_builder_unref(builder);
ret = pkgmgr_client_connection_send_request(client, "install",
- g_variant_new("(uss@as)", uid, pkgtype, pkg_path, args),
+ g_variant_new("(uss@as)", uid, pkgtype ? pkgtype : "",
+ pkg_path, args),
&result);
if (ret != PKGMGR_R_OK) {
ERR("request failed: %d", ret);
g_variant_builder_unref(builder);
ret = pkgmgr_client_connection_send_request(client, "mount_install",
- g_variant_new("(uss@as)", uid, pkgtype, pkg_path, args),
+ g_variant_new("(uss@as)", uid, pkgtype ? pkgtype : "",
+ pkg_path, args),
&result);
if (ret != PKGMGR_R_OK) {
ERR("request failed: %d", ret);