st
simple terminal
git clone https://9o.is/git/st.git
commit 544baab9fd1d23ac02a2b5501d200ebb6ffb87b2 parent 4599fa624b5cbb554d607aa27a73ddc5d04a843d Author: Rafa Garcia Gallego <rafael.garcia.gallego@gmail.com> Date: Wed, 26 Mar 2014 23:58:27 +0100 Fix segfault when pressing PrintScr without a selection Diffstat:
| M | st.c | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/st.c b/st.c @@ -2263,9 +2263,10 @@ tdumpsel(void) { char *ptr; - ptr = getsel(); - tprinter(ptr, strlen(ptr)); - free(ptr); + if((ptr = getsel())) { + tprinter(ptr, strlen(ptr)); + free(ptr); + } } void