Fix segfault when pressing PrintScr without a selection

master
Rafa Garcia Gallego 11 years ago committed by Roberto E. Vargas Caballero
parent 45b808b88e
commit 672e4e4b03

@ -2263,10 +2263,11 @@ tdumpsel(void)
{
char *ptr;
ptr = getsel();
if((ptr = getsel())) {
tprinter(ptr, strlen(ptr));
free(ptr);
}
}
void
tdumpline(int n) {

Loading…
Cancel
Save