This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository efm2.

View the commit online.

commit 6253d687ae068061c0cfb9be098e24ea9079132b
Author: Carsten Haitzler (Rasterman) <[email protected]>
AuthorDate: Tue Feb 10 11:38:58 2026 +0000

    user complete - handle completion fail
---
 src/efm/efm_typebuf.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/efm/efm_typebuf.c b/src/efm/efm_typebuf.c
index 855a578..708c91d 100644
--- a/src/efm/efm_typebuf.c
+++ b/src/efm/efm_typebuf.c
@@ -395,7 +395,7 @@ _path_user_complete(Smart_Data *sd, const char *str)
   const char *rest, *s1, *s2;
   char       *home = NULL, *h;
   char       *resolve = NULL, *complete = NULL, *src = ""
-  Eina_Strbuf *buf;
+  Eina_Strbuf *buf = NULL;
 
   if (!_has_path_user(str)) return EINA_FALSE;
   // we know str already has ~/ or ~user/ at the start
@@ -415,6 +415,7 @@ _path_user_complete(Smart_Data *sd, const char *str)
       src = ""
       if (!src) goto done;
       complete = util_complete(src, COMPLETE_DIR);
+      if (!complete) goto done;
       // while home resolved + complete match strings...
       for (s1 = resolve, s2 = complete; (*s1) && (*s2) && (*s1 == *s2);
            s1++, s2++);
@@ -422,9 +423,9 @@ _path_user_complete(Smart_Data *sd, const char *str)
       eina_strbuf_append(buf, s2);
       _path_user_hilight(sd, eina_strbuf_string_get(buf));
       elm_entry_cursor_end_set(sd->o_typebuf);
-      eina_strbuf_free(buf);
     }
 done:
+  if (buf) eina_strbuf_free(buf);
   free(src);
   free(resolve);
   free(home);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to