initialize with NULL, so the later check for NULL will work.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2928 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
b507ee68e4
commit
56082ee3a0
|
@ -1260,7 +1260,7 @@ do_change_attributes(struct sc_profile *profile, unsigned int opt_type)
|
||||||
{
|
{
|
||||||
int r = 0;
|
int r = 0;
|
||||||
sc_pkcs15_id_t id;
|
sc_pkcs15_id_t id;
|
||||||
sc_pkcs15_object_t *obj;
|
sc_pkcs15_object_t *obj = NULL;
|
||||||
|
|
||||||
if (opt_objectid == NULL) {
|
if (opt_objectid == NULL) {
|
||||||
printf("You have to specify the --id of the object\n");
|
printf("You have to specify the --id of the object\n");
|
||||||
|
|
Loading…
Reference in New Issue