]> mj.ucw.cz Git - libucw.git/blobdiff - lib/buckettool.c
tiny bugfix :))
[libucw.git] / lib / buckettool.c
index 76b8fc37c21f5586074490981ecee352eefbf23a..a5ac300861bad5d42adfb3f95d3928336c7a63b9 100644 (file)
@@ -92,10 +92,11 @@ delete(char *id)
 }
 
 static inline void
-dump_oattrs(struct fastbuf *out, struct oattr *a)
+dump_oattrs(struct fastbuf *out, struct oattr *oa)
 {
-  for (; a; a = a->same)
-    bprintf(out, "%c%s\n", a->attr, a->val);
+  for (; oa; oa = oa->next)
+    for (struct oattr *a=oa; a; a = a->same)
+      bprintf(out, "%c%s\n", a->attr, a->val);
 }
 
 static void