Uploaded image for project: 'hicn'
  1. hicn
  2. HICN-478

Wrong initialisation of struct sockaddrstorage

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 21.01
    • None
    • hicn/libhicnctrl
    • None

      The struct is initialized with he expression { 0 }, which generates a compile warning:

      /tmp/android-sdk-hproxy/android-sdk/src/hicn/ctrl/libhicnctrl/src/api.c:568:36: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
      

      Because all the embers of the struct must be intialized to {0} separately.

      Warning can be fixed using a memset()

            mauro91 Mauro Sardara
            mauro91 Mauro Sardara
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: