[gupnp-tools] universal-cp: Fix missing format string
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp-tools] universal-cp: Fix missing format string
- Date: Tue, 22 Jun 2021 08:30:15 +0000 (UTC)
commit d738baae3bffaf6a8dfc12f5fe1ea13168fe2e48
Author: Jens Georg <mail jensge org>
Date: Tue Jun 22 10:29:08 2021 +0200
universal-cp: Fix missing format string
Fixes #20
src/universal-cp/main.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/universal-cp/main.c b/src/universal-cp/main.c
index b6557c8..ce6e9b3 100644
--- a/src/universal-cp/main.c
+++ b/src/universal-cp/main.c
@@ -70,11 +70,10 @@ parse_uda_version (const gchar *option_name,
} else if (g_str_equal (value, "1.1")) {
uda_version = GSSDP_UDA_VERSION_1_1;
} else {
- char *msg = g_strconcat ("Invalid UDA version: ", value, NULL);
g_set_error (error,
G_IO_ERROR,
G_IO_ERROR_INVALID_ARGUMENT,
- msg);
+ "Invalid UDA version: %s", value);
g_free (msg);
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]