aboutsummaryrefslogtreecommitdiff
path: root/libmm-glib
diff options
context:
space:
mode:
authorAleksander Morgado <aleksandermj@chromium.org>2022-10-05 08:45:46 +0000
committerAleksander Morgado <aleksandermj@chromium.org>2022-10-05 09:07:06 +0000
commit976a3d4d826e5d9c6b66287c3d11c95318d45810 (patch)
treedd583f42a6192bbf3fd2f36486ee22bc435ccb36 /libmm-glib
parentbfba265009610e84af4f8e4b1b3f05ec3a2d56bc (diff)
libmm-glib,common-helpers: minor coding style fix in mm_new_iso8601_time()
Diffstat (limited to 'libmm-glib')
-rw-r--r--libmm-glib/mm-common-helpers.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libmm-glib/mm-common-helpers.c b/libmm-glib/mm-common-helpers.c
index 0dff0e8c..5f3af4ac 100644
--- a/libmm-glib/mm-common-helpers.c
+++ b/libmm-glib/mm-common-helpers.c
@@ -1789,11 +1789,9 @@ mm_new_iso8601_time (guint year,
} else
dt = g_date_time_new_utc (year, month, day, hour, minute, second);
- if (dt == NULL) {
- g_set_error (error,
- MM_CORE_ERROR,
- MM_CORE_ERROR_INVALID_ARGS,
- "Invalid input for date: got year:%u, month:%u, day:%u, hour:%u, minute:%u, second:%u",
+ if (!dt) {
+ g_set_error (error, MM_CORE_ERROR, MM_CORE_ERROR_INVALID_ARGS,
+ "Invalid date: year: %u, month: %u, day: %u, hour: %u, minute: %u, second: %u",
year, month, day, hour, minute, second);
return NULL;
}