diff options
author | Jihoon Jung <jh8801.jung@samsung.com> | 2024-11-14 10:51:24 +0900 |
---|---|---|
committer | Jihoon Jung <jh8801.jung@samsung.com> | 2024-11-14 10:51:24 +0900 |
commit | 1d3636213a012386880c3dd0e77f42dd11f5f901 (patch) | |
tree | 484dee84ed62380916c1b5a1714860ce44d32edd | |
parent | c2e17666d914f78351b1fe41525e2f6c1742c489 (diff) | |
download | mtp-initiator-tizen.tar.gz mtp-initiator-tizen.tar.bz2 mtp-initiator-tizen.zip |
Change-Id: I7d3efa3a2fd189c1e00f90c199cf1ccb4e6acfac
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
-rw-r--r--[-rwxr-xr-x] | src/daemon/mtp_daemon_event.c | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | src/daemon/mtp_daemon_gdbus_deviceinfo.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/daemon/mtp_daemon_event.c b/src/daemon/mtp_daemon_event.c index 6ec4784..83d3774 100755..100644 --- a/src/daemon/mtp_daemon_event.c +++ b/src/daemon/mtp_daemon_event.c @@ -309,6 +309,8 @@ mtp_error_e __device_list_init(mtp_context *mtp_ctx) device_info->bus_location = rawdevices[device_index].bus_location; device_info->device_number = rawdevices[device_index].devnum; device_info->model_name = LIBMTP_Get_Modelname(device); + device_info->stitching_engine_version = NULL; + char *device_version = LIBMTP_Get_Deviceversion(device); MTP_LOGI("Device version : %s", device_version); diff --git a/src/daemon/mtp_daemon_gdbus_deviceinfo.c b/src/daemon/mtp_daemon_gdbus_deviceinfo.c index bb163ec..ceb9c35 100755..100644 --- a/src/daemon/mtp_daemon_gdbus_deviceinfo.c +++ b/src/daemon/mtp_daemon_gdbus_deviceinfo.c @@ -293,8 +293,11 @@ static void __deviceinfo_get_stitching_engine_version_thread_func(gpointer user_ if (device_info != NULL) { if (device_info->stitching_engine_version != NULL) stitching_engine_version = strdup(device_info->stitching_engine_version); + else + stitching_engine_version = strdup("N/A"); } else { /* LCOV_EXCL_START */ + stitching_engine_version = strdup("N/A"); MTP_LOGE("No MTP device"); result = MTP_ERROR_NO_DEVICE; /* LCOV_EXCL_STOP */ |