shithub: mc

Download patch

ref: ccfe71811f1ebd2e0a1f5bd42d78dd740638d9ec
parent: e2f62755339d913f59d08ceafaa24849cf9da803
author: Ori Bernstein <[email protected]>
date: Mon May 27 21:11:51 EDT 2013

Edit quotes in error message.

    This makes it clearer to see what the label is, vs where the error
    message sis.

--- a/mi/cfg.c
+++ b/mi/cfg.c
@@ -135,7 +135,7 @@
         if (a) {
             targ = htget(cfg->lblmap, lblstr(a));
             if (!targ)
-                die("No bb with label %s", lblstr(a));
+                die("No bb with label \"%s\"", lblstr(a));
             bsput(bb->succ, targ->id);
             bsput(targ->pred, bb->id);
         }
@@ -142,7 +142,7 @@
         if (b) {
             targ = htget(cfg->lblmap, lblstr(b));
             if (!targ)
-                die("No bb with label %s", lblstr(b));
+                die("No bb with label \"%s\"", lblstr(b));
             bsput(bb->succ, targ->id);
             bsput(targ->pred, bb->id);
         }