diff options
Diffstat (limited to 'meta-oe/recipes-devtools/geany/geany-plugins/0001-projectorganizer-fix-invalid-string-comparison.patch')
-rw-r--r-- | meta-oe/recipes-devtools/geany/geany-plugins/0001-projectorganizer-fix-invalid-string-comparison.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/geany/geany-plugins/0001-projectorganizer-fix-invalid-string-comparison.patch b/meta-oe/recipes-devtools/geany/geany-plugins/0001-projectorganizer-fix-invalid-string-comparison.patch new file mode 100644 index 0000000000..5a0650aec1 --- /dev/null +++ b/meta-oe/recipes-devtools/geany/geany-plugins/0001-projectorganizer-fix-invalid-string-comparison.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | From 8dfd7f2cba428f5eb232fbbe3427c64171bae0f4 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Ji=C5=99=C3=AD=20Techet?= <techet@gmail.com> | ||
3 | Date: Tue, 5 Mar 2024 18:36:37 +0100 | ||
4 | Subject: [PATCH 1/3] projectorganizer: fix invalid string comparison | ||
5 | |||
6 | Upstream-Status: Backport [https://github.com/geany/geany-plugins/commit/8dfd7f2cba428f5eb232fbbe3427c64171bae0f4] | ||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- | ||
9 | projectorganizer/src/prjorg-sidebar.c | 2 +- | ||
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/projectorganizer/src/prjorg-sidebar.c b/projectorganizer/src/prjorg-sidebar.c | ||
13 | index b6422f0..0139473 100644 | ||
14 | --- a/projectorganizer/src/prjorg-sidebar.c | ||
15 | +++ b/projectorganizer/src/prjorg-sidebar.c | ||
16 | @@ -346,7 +346,7 @@ static gchar *get_fallback_dir_of_selection(void) | ||
17 | { | ||
18 | locale_path = g_path_get_dirname(doc->real_path); | ||
19 | |||
20 | - if (locale_path && locale_path == '.') | ||
21 | + if (locale_path && *locale_path == '.') | ||
22 | { | ||
23 | g_free(locale_path); | ||
24 | locale_path = NULL; | ||