[gnome-builder/wip/gtk4-port] libide/lsp: strip string before empty check
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] libide/lsp: strip string before empty check
- Date: Thu, 21 Apr 2022 01:17:37 +0000 (UTC)
commit cc87ce57c8f9f9ab7b168e4de0a98945c7738e51
Author: Christian Hergert <chergert redhat com>
Date: Wed Apr 20 18:17:04 2022 -0700
libide/lsp: strip string before empty check
src/libide/lsp/ide-lsp-hover-provider.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/lsp/ide-lsp-hover-provider.c b/src/libide/lsp/ide-lsp-hover-provider.c
index 4b67959a6..f5e3ed704 100644
--- a/src/libide/lsp/ide-lsp-hover-provider.c
+++ b/src/libide/lsp/ide-lsp-hover-provider.c
@@ -86,7 +86,7 @@ parse_marked_string (GVariant *v)
if (g_variant_is_of_type (v, G_VARIANT_TYPE_STRING))
{
gsize len = 0;
- const char *str = g_variant_get_string (v, &len);
+ g_autofree char *str = g_strstrip (g_variant_dup_string (v, &len));
if (str && *str == '\0')
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]