mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 13:55:47 +03:00
Set errno for expand function of the string list.
This commit is contained in:
parent
b629730fb0
commit
8753352e5e
2 changed files with 3 additions and 1 deletions
|
@ -100,6 +100,7 @@ int c_strlist_add(c_strlist_t *strlist, const char *string) {
|
|||
}
|
||||
strlist->count++;
|
||||
} else {
|
||||
errno = ENOBUFS;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
@ -92,7 +92,8 @@ c_strlist_t *c_strlist_expand(c_strlist_t *strlist, size_t size);
|
|||
* @param strlist Stringlist to add the string.
|
||||
* @param string String to add.
|
||||
*
|
||||
* @return 0 on success, less than 0 if an error occured.
|
||||
* @return 0 on success, less than 0 and errno set if an error occured.
|
||||
* ENOBUFS if the list is full.
|
||||
*/
|
||||
int c_strlist_add(c_strlist_t *strlist, const char *string);
|
||||
|
||||
|
|
Loading…
Reference in a new issue