]> git.cworth.org Git - scherzo/blobdiff - score.c
Add a few initializations to quiet compiler warnings.
[scherzo] / score.c
diff --git a/score.c b/score.c
index 25187ba06e19a7ead61a27aae5fc77b6c351828e..9ef75bdf69f64e00b7a7ba248adb54e947467902 100644 (file)
--- a/score.c
+++ b/score.c
@@ -425,7 +425,8 @@ score_draw (score_t *score, cairo_t *cr)
 
     if (score->num_braces)
     {
-       int brace_width;
+       /* Initialize to keep the compiler quiet. */
+       int brace_width = 0;
 
        for (i = 0; i < score->num_braces; i++)
            _draw_brace (score, cr, score->braces[i], &brace_width);
@@ -528,6 +529,8 @@ score_add_chord (score_staff_t *staff,
     if (chord == NULL)
        return NULL;
 
+    talloc_steal (chord, name);
+
     chord->staff = staff;
     chord->name = talloc_strdup (chord, name);