added more error handling

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@351 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-11-10 14:30:38 +00:00
parent 265ee4f813
commit 1fda90aab4
3 changed files with 27 additions and 12 deletions

View File

@@ -114,7 +114,6 @@ static int lnfc_connect(void **driver_data)
data = realloc(*driver_data, sizeof *data);
if (!data)
return 0;
memset(data, 0, sizeof *data);
*driver_data = data;
/* FIXME