#include <limits.h>
#include <arpa/inet.h>
#include <unistd.h>
-#include <inttypes.h>
#include <stdlib.h>
#include "ifconf.h"
return r;
}
- qsort(list, n_list, sizeof(struct address), address_compare);
+ if (n_list)
+ qsort(list, n_list, sizeof(struct address), address_compare);
*_list = list;
*_n_list = n_list;