mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
The string we add should be const for strlist.
This commit is contained in:
parent
d2c3e0734f
commit
10ec516dce
@ -88,7 +88,7 @@ c_strlist_t *c_strlist_expand(c_strlist_t *strlist, size_t size) {
|
||||
return strlist;
|
||||
}
|
||||
|
||||
int c_strlist_add(c_strlist_t *strlist, char *string) {
|
||||
int c_strlist_add(c_strlist_t *strlist, const char *string) {
|
||||
if (strlist == NULL || string == NULL) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -94,7 +94,7 @@ c_strlist_t *c_strlist_expand(c_strlist_t *strlist, size_t size);
|
||||
*
|
||||
* @return 0 on success, less than 0 if an error occured.
|
||||
*/
|
||||
int c_strlist_add(c_strlist_t *strlist, char *string);
|
||||
int c_strlist_add(c_strlist_t *strlist, const char *string);
|
||||
|
||||
/**
|
||||
* @brief Destroy the memory of the stringlist.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user