aboutsummaryrefslogtreecommitdiffstats
path: root/smime/lib/e-asn1-object.c
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@gnome.org>2006-10-01 19:49:27 +0800
committerKjartan Maraas <kmaraas@src.gnome.org>2006-10-01 19:49:27 +0800
commit8f0374166d477e9ee2d64ee7bfe75b537fb5382a (patch)
tree157ef18da7f47ffd5ebd67f1cbe3d712495eb4ee /smime/lib/e-asn1-object.c
parent90dfa49bf6a4c4a5f27de7bd53bcbe4d9bf21eaa (diff)
downloadgsoc2013-evolution-8f0374166d477e9ee2d64ee7bfe75b537fb5382a.tar.gz
gsoc2013-evolution-8f0374166d477e9ee2d64ee7bfe75b537fb5382a.tar.zst
gsoc2013-evolution-8f0374166d477e9ee2d64ee7bfe75b537fb5382a.zip
Initialize a pointer to NULL and cast away a warning. bug #332101. Fix
2006-10-01 Kjartan Maraas <kmaraas@gnome.org> * lib/e-asn1-object.c: (build_from_der): Initialize a pointer to NULL and cast away a warning. bug #332101. * lib/e-pkcs12.c: (prompt_for_password), (nickname_collision): Fix some signed/unsigned warnings. bug #332101. svn path=/trunk/; revision=32840
Diffstat (limited to 'smime/lib/e-asn1-object.c')
-rw-r--r--smime/lib/e-asn1-object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/smime/lib/e-asn1-object.c b/smime/lib/e-asn1-object.c
index 3fe957f3ba..49002d1cfc 100644
--- a/smime/lib/e-asn1-object.c
+++ b/smime/lib/e-asn1-object.c
@@ -229,7 +229,7 @@ build_from_der (EASN1Object *parent, char *data, char *end)
PRInt32 len;
PRUint32 type;
unsigned char code, tagnum;
- EASN1Object *asn1object;
+ EASN1Object *asn1object = NULL;
if (data >= end)
return TRUE;
@@ -254,7 +254,7 @@ build_from_der (EASN1Object *parent, char *data, char *end)
return FALSE;
}
data++;
- len = get_der_item_length (data, end, &bytesUsed, &indefinite);
+ len = get_der_item_length ((unsigned char *)data, (unsigned char *)end, &bytesUsed, &indefinite);
data += bytesUsed;
if ((len < 0) || ((data+len) > end))
return FALSE;