mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 23:46:00 +01:00
Use g_strv_length
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
d7b06ca3fc
commit
b2189277bb
1 changed files with 1 additions and 5 deletions
|
@ -263,11 +263,7 @@ find_first_page_column(const char* first_page_column_list,
|
||||||
|
|
||||||
/* split settings list */
|
/* split settings list */
|
||||||
char** settings = g_strsplit(first_page_column_list, ":", pages_per_row+1);
|
char** settings = g_strsplit(first_page_column_list, ":", pages_per_row+1);
|
||||||
|
const size_t settings_size = g_strv_length(settings);
|
||||||
size_t settings_size = 0;
|
|
||||||
while (settings[settings_size] != NULL) {
|
|
||||||
++settings_size;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* read setting value corresponding to the specified pages per row */
|
/* read setting value corresponding to the specified pages per row */
|
||||||
unsigned int index = pages_per_row - 1;
|
unsigned int index = pages_per_row - 1;
|
||||||
|
|
Loading…
Reference in a new issue