summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdevkit-power/egg-obj-list.c2
-rw-r--r--src/egg-string.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/libdevkit-power/egg-obj-list.c b/libdevkit-power/egg-obj-list.c
index 026b183..9c7d07b 100644
--- a/libdevkit-power/egg-obj-list.c
+++ b/libdevkit-power/egg-obj-list.c
@@ -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);
}
}
diff --git a/src/egg-string.c b/src/egg-string.c
index ef414a3..8ddb6af 100644
--- a/src/egg-string.c
+++ b/src/egg-string.c
@@ -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++) {