summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2001-04-01 13:22:00 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2001-04-01 13:22:00 +0000
commit0933a13396d887cc312685023e43c229a6aaaaa8 (patch)
treeb07e99e8db6a421a2a9f64dcae0f237c2f95d570
parent902d3cee56613ea25527423a7f7de1cf9d03da7b (diff)
downloadmdk-0933a13396d887cc312685023e43c229a6aaaaa8.tar.gz
mdk-0933a13396d887cc312685023e43c229a6aaaaa8.tar.bz2
(cmd_smem_) variables always initialised
-rw-r--r--mixlib/mix_vm_command.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mixlib/mix_vm_command.c b/mixlib/mix_vm_command.c
index 9cc0d52..aab6e3a 100644
--- a/mixlib/mix_vm_command.c
+++ b/mixlib/mix_vm_command.c
@@ -1,7 +1,7 @@
/* -*-c-*- -------------- mix_vm_command.c :
* Implementation of the functions declared in mix_vm_command.h
* ------------------------------------------------------------------
- * Last change: Time-stamp: "01/03/15 15:57:52 jose"
+ * Last change: Time-stamp: "01/04/01 15:16:18 jose"
* ------------------------------------------------------------------
* Copyright (C) 2001 Free Software Foundation, Inc.
*
@@ -859,8 +859,8 @@ static gboolean
cmd_smem_ (mix_vm_cmd_dispatcher_t *dis, const gchar *carg)
{
gboolean ok = (strlen (carg) > 2 && isdigit (carg[0]));
- gulong addr;
- glong value;
+ glong addr = -1;
+ glong value = 0;
int k = 0;
gchar *arg = NULL;
@@ -893,7 +893,7 @@ cmd_smem_ (mix_vm_cmd_dispatcher_t *dis, const gchar *carg)
fprintf (dis->err, _("Invalid argument: %s\n"), arg);
cmd_help_ (dis, "smem");
}
- g_free (arg);
+ if (arg) g_free (arg);
return ok;
}