[gnome-talos] gpu: Strip trailing newline from name
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-talos] gpu: Strip trailing newline from name
- Date: Mon, 26 Sep 2011 22:30:03 +0000 (UTC)
commit 8e809591d90b6181936cd3ba7af0a2268608797d
Author: Colin Walters <walters verbum org>
Date: Mon Sep 26 18:15:34 2011 -0400
gpu: Strip trailing newline from name
So it doesn't propagate into JS.
src/gnome-talos-gpu.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-talos-gpu.c b/src/gnome-talos-gpu.c
index 768970c..2ac4dd2 100644
--- a/src/gnome-talos-gpu.c
+++ b/src/gnome-talos-gpu.c
@@ -128,6 +128,8 @@ gnome_talos_acquire_gpu_meta (GError **error)
NULL);
if (!name)
goto failed;
+ /* Kill trailing newline */
+ (void)g_strchomp (name);
g_variant_builder_add (&builder, "{sv}",
"name",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]