mirror of
https://github.com/alrayyes/st.git
synced 2024-11-22 19:26:22 +00:00
Fix segfault when pressing PrintScr without a selection
This commit is contained in:
parent
45b808b88e
commit
672e4e4b03
1 changed files with 4 additions and 3 deletions
7
st.c
7
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
|
||||
|
|
Loading…
Reference in a new issue