mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-01 17:18:00 +02:00
trivial egg updates
This commit is contained in:
parent
30240b2e97
commit
4fb995f784
2 changed files with 2 additions and 3 deletions
|
|
@ -163,7 +163,7 @@ egg_obj_list_print (EggObjList *list)
|
|||
for (i=0; i<array->len; i++) {
|
||||
obj = g_ptr_array_index (array, i);
|
||||
text = func_to_string (obj);
|
||||
g_print ("%s\n", text);
|
||||
g_print ("(%i)\t%s\n", i, text);
|
||||
g_free (text);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -165,9 +165,8 @@ egg_strlen (const gchar *text, guint len)
|
|||
guint i;
|
||||
|
||||
/* common case */
|
||||
if (text == NULL || text[0] == '\0') {
|
||||
if (text == NULL || text[0] == '\0')
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* only count up to len */
|
||||
for (i=1; i<len; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue