mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-22 18:47:46 -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:
committed by
Julien BLACHE
parent
567bd3ee03
commit
7c1752d871
@@ -1516,7 +1516,7 @@ int ws_addarg(ARGLIST *root, char *key, char *fmt, ...) {
|
|||||||
free(newkey);
|
free(newkey);
|
||||||
free(pnew);
|
free(pnew);
|
||||||
WS_EXIT();
|
WS_EXIT();
|
||||||
return 0;
|
return TRUE;
|
||||||
}
|
}
|
||||||
current=current->next;
|
current=current->next;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user