mirror of
https://github.com/pikami/st.git
synced 2025-04-27 20:03:09 +01:00
Fix segfault when pressing PrintScr without a selection
This commit is contained in:
parent
45b808b88e
commit
672e4e4b03
3
st.c
3
st.c
@ -2263,10 +2263,11 @@ tdumpsel(void)
|
||||
{
|
||||
char *ptr;
|
||||
|
||||
ptr = getsel();
|
||||
if((ptr = getsel())) {
|
||||
tprinter(ptr, strlen(ptr));
|
||||
free(ptr);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
tdumpline(int n) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user