1
0

001-fix-uninitialized-warning-errors.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --- a/src/lib/kadm5/str_conv.c
  2. +++ b/src/lib/kadm5/str_conv.c
  3. @@ -131,7 +131,7 @@
  4. {
  5. int found = 0, invert = 0;
  6. size_t i;
  7. - krb5_flags flag;
  8. + krb5_flags flag = 0;
  9. unsigned long ul;
  10. for (i = 0; !found && i < NFTBL; i++) {
  11. --- a/src/lib/krad/packet.c
  12. +++ b/src/lib/krad/packet.c
  13. @@ -253,7 +253,7 @@
  14. {
  15. krb5_error_code retval;
  16. krad_packet *pkt;
  17. - uchar id;
  18. + uchar id = 0;
  19. size_t attrset_len;
  20. pkt = packet_new();
  21. --- a/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
  22. +++ b/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
  23. @@ -3618,7 +3618,7 @@
  24. {
  25. CK_ULONG i, r;
  26. unsigned char *cp;
  27. - size_t label_len;
  28. + size_t label_len = 0;
  29. CK_ULONG count = 0;
  30. CK_SLOT_ID_PTR slotlist;
  31. CK_TOKEN_INFO tinfo;
  32. --- a/src/util/profile/prof_file.c
  33. +++ b/src/util/profile/prof_file.c
  34. @@ -309,7 +309,7 @@
  35. unsigned long frac;
  36. time_t now;
  37. #endif
  38. - FILE *f;
  39. + FILE *f = NULL;
  40. int isdir = 0;
  41. #ifdef HAVE_STAT
  42. --- a/src/kadmin/ktutil/ktutil_funcs.c
  43. +++ b/src/kadmin/ktutil/ktutil_funcs.c
  44. @@ -64,7 +64,7 @@
  45. krb5_kt_list *list;
  46. int idx;
  47. {
  48. - krb5_kt_list lp, prev;
  49. + krb5_kt_list lp, prev = NULL;
  50. int i;
  51. for (lp = *list, i = 1; lp; prev = lp, lp = lp->next, i++) {