reset line to avoid duplicating last item
[rugen] / src / dv1394app.c
index 6de7d91..dcebf7c 100644 (file)
@@ -176,6 +176,9 @@ static void playlist_open(dv1394app this, char* filename)
                                char* s;
                                char l[PATH_MAX];
 
+                               /* reset line */
+                               l[0] = 0;
+
                                /* load string */
                                fgets(l, sizeof(l), f);