X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=d58af7dd1d2646854262d3912da2106058c20f17;hb=672e4e4b03d8987103020d399b2c05c95a9ea2f8;hp=e20a1e0691fb74019b5aeb75a969e82a9df063cd;hpb=45b808b88ee63f21a188800ba3473a24a3c4b987;p=st.git diff --git a/st.c b/st.c index e20a1e0..d58af7d 100644 --- 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