Change type of variable 'i' and 'j' to gsize for comparison of idential types.
Two variables was int instead of gsize, but the variable performing comparison operation
with the corresponding values have the type of gsize.
In this case, gsize (unsinged) has big max value than max value of int (signed).
Therefore, it can cause wrong result when performing comparison operation.
For example, 'for (int i = 0; i < gsize value; i++)' can cause overflow of 'i',
so it would result in infinite loops.
Change-Id: I48aac1081b543a88e0ebb3aa19520d3cc56a8d7b
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
GError *err = NULL;
gchar **groups = NULL;
gsize n_groups = 0;
- int i,j;
+ gsize i = 0;
+ gsize j = 0;
GKeyFile *settings = g_key_file_new ();
const gchar * const *sysconfdirs;