1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Description: Check the correct function argument.
Forwarded: no
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2011-05-10
--- a/mixlib/xmix_vm_handlers.c
+++ b/mixlib/xmix_vm_handlers.c
@@ -1054,7 +1054,7 @@
cmd_pedit_ (mix_vm_cmd_dispatcher_t *dis, const gchar *arg)
{
const gchar *ed = mix_vm_cmd_dispatcher_get_editor (dis);
- if (dis)
+ if (ed)
fprintf (dis->out, _("Edit command: %s\n"), ed);
else
fprintf (dis->out, _("Edit command not set (use sedit)\n"));
@@ -1077,7 +1077,7 @@
cmd_pasm_ (mix_vm_cmd_dispatcher_t *dis, const gchar *arg)
{
const gchar *ed = mix_vm_cmd_dispatcher_get_assembler (dis);
- if (dis)
+ if (ed)
fprintf (dis->out, _("Compile command: %s\n"), ed);
else
fprintf (dis->out, _("Compile command not set (use sasm)\n"));
|