Commit b2189277 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Use g_strv_length

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent d7b06ca3
......@@ -263,11 +263,7 @@ find_first_page_column(const char* first_page_column_list,
/* split settings list */
char** settings = g_strsplit(first_page_column_list, ":", pages_per_row+1);
size_t settings_size = 0;
while (settings[settings_size] != NULL) {
++settings_size;
}
const size_t settings_size = g_strv_length(settings);
/* read setting value corresponding to the specified pages per row */
unsigned int index = pages_per_row - 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment