mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
Fix a bad return value in ws_addarg()
Fix a bad return value in ws_addarg() when updating a header value, leading the caller to believe an out of memory condition happened.
This commit is contained in:
parent
567bd3ee03
commit
7c1752d871
@ -1516,7 +1516,7 @@ int ws_addarg(ARGLIST *root, char *key, char *fmt, ...) {
|
||||
free(newkey);
|
||||
free(pnew);
|
||||
WS_EXIT();
|
||||
return 0;
|
||||
return TRUE;
|
||||
}
|
||||
current=current->next;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user