X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=f9aba901b62726086eef095721bd2db6104aac6b;hb=0d7448dabc981716d277a5afac22fabc127bacca;hp=5e92db20ac6d9131e206f25d32a73eef27cf2049;hpb=b17aa18f7c15be8db2afd62ac696b63c75755f1c;p=st.git diff --git a/st.c b/st.c index 5e92db2..f9aba90 100644 --- a/st.c +++ b/st.c @@ -2268,8 +2268,7 @@ strhandle(void) { term.esc &= ~(ESC_STR_END|ESC_STR); strparse(); - narg = strescseq.narg; - par = atoi(strescseq.args[0]); + par = (narg = strescseq.narg) ? atoi(strescseq.args[0]) : 0; switch(strescseq.type) { case ']': /* OSC -- Operating System Command */