diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-07-17 09:41:22 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-07-17 09:41:22 +0000 |
commit | 6a98426836161b08b3e7650721497527ca3d3967 (patch) | |
tree | b5470b598ec47206c1f0758cff014de6245d2f14 /src/identity/identity_api.c | |
parent | 1fb98d39ccb40ac91c1bbd4469dc3be7d26d75cb (diff) | |
download | gnunet-6a98426836161b08b3e7650721497527ca3d3967.tar.gz gnunet-6a98426836161b08b3e7650721497527ca3d3967.zip |
-fix uninitialized fields
Diffstat (limited to 'src/identity/identity_api.c')
-rw-r--r-- | src/identity/identity_api.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c index 6ca71b09f..441b63bf0 100644 --- a/src/identity/identity_api.c +++ b/src/identity/identity_api.c | |||
@@ -616,6 +616,7 @@ GNUNET_IDENTITY_get (struct GNUNET_IDENTITY_Handle *id, | |||
616 | op = GNUNET_malloc (sizeof (struct GNUNET_IDENTITY_Operation) + | 616 | op = GNUNET_malloc (sizeof (struct GNUNET_IDENTITY_Operation) + |
617 | sizeof (struct GNUNET_IDENTITY_GetDefaultMessage) + | 617 | sizeof (struct GNUNET_IDENTITY_GetDefaultMessage) + |
618 | slen); | 618 | slen); |
619 | op->h = id; | ||
619 | op->cb = cb; | 620 | op->cb = cb; |
620 | op->cls = cb_cls; | 621 | op->cls = cb_cls; |
621 | gdm = (struct GNUNET_IDENTITY_GetDefaultMessage *) &op[1]; | 622 | gdm = (struct GNUNET_IDENTITY_GetDefaultMessage *) &op[1]; |
@@ -672,6 +673,7 @@ GNUNET_IDENTITY_set (struct GNUNET_IDENTITY_Handle *id, | |||
672 | op = GNUNET_malloc (sizeof (struct GNUNET_IDENTITY_Operation) + | 673 | op = GNUNET_malloc (sizeof (struct GNUNET_IDENTITY_Operation) + |
673 | sizeof (struct GNUNET_IDENTITY_SetDefaultMessage) + | 674 | sizeof (struct GNUNET_IDENTITY_SetDefaultMessage) + |
674 | enc_len + slen); | 675 | enc_len + slen); |
676 | op->h = id; | ||
675 | op->cont = cont; | 677 | op->cont = cont; |
676 | op->cls = cont_cls; | 678 | op->cls = cont_cls; |
677 | sdm = (struct GNUNET_IDENTITY_SetDefaultMessage *) &op[1]; | 679 | sdm = (struct GNUNET_IDENTITY_SetDefaultMessage *) &op[1]; |
@@ -731,6 +733,7 @@ GNUNET_IDENTITY_create (struct GNUNET_IDENTITY_Handle *id, | |||
731 | op = GNUNET_malloc (sizeof (struct GNUNET_IDENTITY_Operation) + | 733 | op = GNUNET_malloc (sizeof (struct GNUNET_IDENTITY_Operation) + |
732 | sizeof (struct GNUNET_IDENTITY_CreateRequestMessage) + | 734 | sizeof (struct GNUNET_IDENTITY_CreateRequestMessage) + |
733 | enc_len + slen); | 735 | enc_len + slen); |
736 | op->h = id; | ||
734 | op->cb = cb; | 737 | op->cb = cb; |
735 | op->cls = cb_cls; | 738 | op->cls = cb_cls; |
736 | crm = (struct GNUNET_IDENTITY_CreateRequestMessage *) &op[1]; | 739 | crm = (struct GNUNET_IDENTITY_CreateRequestMessage *) &op[1]; |
@@ -787,6 +790,7 @@ GNUNET_IDENTITY_rename (struct GNUNET_IDENTITY_Handle *id, | |||
787 | op = GNUNET_malloc (sizeof (struct GNUNET_IDENTITY_Operation) + | 790 | op = GNUNET_malloc (sizeof (struct GNUNET_IDENTITY_Operation) + |
788 | sizeof (struct GNUNET_IDENTITY_RenameMessage) + | 791 | sizeof (struct GNUNET_IDENTITY_RenameMessage) + |
789 | slen_old + slen_new); | 792 | slen_old + slen_new); |
793 | op->h = id; | ||
790 | op->cont = cb; | 794 | op->cont = cb; |
791 | op->cls = cb_cls; | 795 | op->cls = cb_cls; |
792 | grm = (struct GNUNET_IDENTITY_RenameMessage *) &op[1]; | 796 | grm = (struct GNUNET_IDENTITY_RenameMessage *) &op[1]; |
@@ -836,6 +840,7 @@ GNUNET_IDENTITY_delete (struct GNUNET_IDENTITY_Handle *id, | |||
836 | op = GNUNET_malloc (sizeof (struct GNUNET_IDENTITY_Operation) + | 840 | op = GNUNET_malloc (sizeof (struct GNUNET_IDENTITY_Operation) + |
837 | sizeof (struct GNUNET_IDENTITY_DeleteMessage) + | 841 | sizeof (struct GNUNET_IDENTITY_DeleteMessage) + |
838 | slen); | 842 | slen); |
843 | op->h = id; | ||
839 | op->cont = cb; | 844 | op->cont = cb; |
840 | op->cls = cb_cls; | 845 | op->cls = cb_cls; |
841 | gdm = (struct GNUNET_IDENTITY_DeleteMessage *) &op[1]; | 846 | gdm = (struct GNUNET_IDENTITY_DeleteMessage *) &op[1]; |