X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbootchart%2Fsvg.c;h=0fb9fffd9b834e9568900353107ed4f60b5415c7;hb=4cd5f79d0bf9fb62636485dd36ee961774361c14;hp=231d3daa8002a1526873f4f9d968dad4b8dca7e6;hpb=6d031c0b6037ac7308d31562c09fb8ac714e82b4;p=elogind.git diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c index 231d3daa8..0fb9fffd9 100644 --- a/src/bootchart/svg.c +++ b/src/bootchart/svg.c @@ -392,7 +392,7 @@ static void svg_pss_graph(void) { svg("\n\n\n"); ps = ps_first; while (ps->next_ps) { - char _cleanup_free_*enc_name; + char _cleanup_free_ *enc_name = NULL; ps = ps->next_ps; if (!ps) continue; @@ -818,14 +818,11 @@ static void svg_ps_bars(void) { /* pass 2 - ps boxes */ ps = ps_first; while ((ps = get_next_ps(ps))) { - char _cleanup_free_*enc_name; + char _cleanup_free_ *enc_name = NULL; double starttime; int t; - if (!ps) - continue; - enc_name = xml_comment_encode(ps->name); if(!enc_name) continue;