summaryrefslogtreecommitdiffhomepage
path: root/mixlib
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
commit05890f4570b274db4f5243d6da33408878875d9a (patch)
treeac04f1a8579d810e17c870b6777fe66959703844 /mixlib
parent20d1f989caa3a1b13c404d59957607aaf3bc559b (diff)
downloadmdk-05890f4570b274db4f5243d6da33408878875d9a.tar.gz
mdk-05890f4570b274db4f5243d6da33408878875d9a.tar.bz2
(cmd_smem_) variables always initialised
Diffstat (limited to 'mixlib')
-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;
}