Browse Source

Fix segfault when pressing PrintScr without a selection

master
Rafa Garcia Gallego 10 years ago
committed by Roberto E. Vargas Caballero
parent
commit
672e4e4b03
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      st.c

+ 4
- 3
st.c View File

@ -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


Loading…
Cancel
Save