aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-15 22:10:32 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-15 22:10:32 +0000
commit5cff9997c5c18a60a8c3159de59332fe6f1d0819 (patch)
treea31c95844afe4605ad2bed5fdb9a3fba4ce5895d
parent21c828423375f1760de3c7a0577b6d6c0d63714c (diff)
Initialize value of objPtr local variable; prevents warning w/ gcc-4.4.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1796 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/helper/jim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/jim.c b/src/helper/jim.c
index 601e0eb9..35ccecf0 100644
--- a/src/helper/jim.c
+++ b/src/helper/jim.c
@@ -5919,7 +5919,7 @@ int Jim_DictKey(Jim_Interp *interp, Jim_Obj *dictPtr, Jim_Obj *keyPtr,
int Jim_DictKeysVector(Jim_Interp *interp, Jim_Obj *dictPtr,
Jim_Obj *const *keyv, int keyc, Jim_Obj **objPtrPtr, int flags)
{
- Jim_Obj *objPtr;
+ Jim_Obj *objPtr = NULL;
int i;
if (keyc == 0) {