all repos — st @ 672e4e4b03d8987103020d399b2c05c95a9ea2f8

st (suckless terminal) config

Fix segfault when pressing PrintScr without a selection
Rafa Garcia Gallego rafael.garcia.gallego@gmail.com
commit

672e4e4b03d8987103020d399b2c05c95a9ea2f8

parent

45b808b88ee63f21a188800ba3473a24a3c4b987

1 files changed, 4 insertions(+), 3 deletions(-)

jump to
M st.cst.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