6002a75 INI: Fix warning Walloc-size-larger-than

1 file Authored by lslebodn 6 years ago, Committed by mzidek 6 years ago,
    INI: Fix warning Walloc-size-larger-than
    
    ini/ini_get_value.c: In function ‘get_bin_config_value’:
    ini/ini_get_value.c:552:11: warning: argument 1 range
      [18446744072635809792, 18446744073709551615] exceeds maximum object size
       9223372036854775807 [-Walloc-size-larger-than=]
         value = malloc(len / 2);
         ~~~~~~^~~~~~~~~~~~~~~~~
    In file included from ini/ini_get_value.c:27:0:
    /usr/include/stdlib.h:424:14: note: in a call to allocation function ‘malloc’ declared here
     extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
                  ^~~~~~
    Reviewed-by: Michal Židek <mzidek@redhat.com>
    
    Merges: https://pagure.io/SSSD/ding-libs/pull-request/3179
    
        
file modified
+2 -2