Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATH: fix for OSC52 clipboard get



Need to initialise the value. Otherwise things don't work when the
clipboard is completely empty.

Oliver

diff --git a/Src/Zle/termquery.c b/Src/Zle/termquery.c
index ea8945895..a2d617db8 100644
--- a/Src/Zle/termquery.c
+++ b/Src/Zle/termquery.c
@@ -626,7 +626,7 @@ system_clipget(char clip)
 {
     static seqstate_t osc52[] = OSC52_STATES;
     char seq[] = "\033]52;.;?\033\\";
-    char *contents;
+    char *contents = NULL;
     seq[5] = clip;
     probe_terminal(seq, osc52, &handle_paste, &contents);
     return contents;




Messages sorted by: Reverse Date, Date, Thread, Author