mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-14 05:33:59 -04:00
tokenize: remove newline from log message (LOG_ERR appends one for us)
This commit is contained in:
parent
22cd25d360
commit
a9eeeedc90
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ tokenize_cmdline(char *cmdline, char ***argv)
|
||||||
char *end = strchr(p, delim);
|
char *end = strchr(p, delim);
|
||||||
if (end == NULL) {
|
if (end == NULL) {
|
||||||
if (delim != ' ') {
|
if (delim != ' ') {
|
||||||
LOG_ERR("unterminated %s quote\n", delim == '"' ? "double" : "single");
|
LOG_ERR("unterminated %s quote", delim == '"' ? "double" : "single");
|
||||||
free(*argv);
|
free(*argv);
|
||||||
*argv = NULL;
|
*argv = NULL;
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue