trivial egg updates

This commit is contained in:
Richard Hughes 2008-09-04 10:05:57 +01:00
parent 30240b2e97
commit 4fb995f784
2 changed files with 2 additions and 3 deletions

View file

@ -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);
}
}

View file

@ -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++) {