forked from pool/iproute2
298fb7c2f4
Copy from network:utilities/iproute2 based on submit request 20502 from user sax2 OBS-URL: https://build.opensuse.org/request/show/20502 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/iproute2?expand=0&rev=23
12 lines
326 B
Diff
12 lines
326 B
Diff
--- ip/ipmaddr.c 2009-09-16 11:21:21.000000000 +0200
|
|
+++ ip/ipmaddr.c 2009-09-16 11:23:14.000000000 +0200
|
|
@@ -136,7 +136,7 @@
|
|
m.addr.bytelen = 4;
|
|
|
|
while (fgets(buf, sizeof(buf), fp)) {
|
|
- struct ma_info *ma = malloc(sizeof(m));
|
|
+ struct ma_info *ma;
|
|
|
|
if (buf[0] != '\t') {
|
|
sscanf(buf, "%d%s", &m.index, m.name);
|