projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df1013f
)
dhcp: Remove useless variable initializer
author
Nikolai Kondrashov
<Nikolai.Kondrashov@redhat.com>
Fri, 30 Jan 2015 13:23:49 +0000
(15:23 +0200)
committer
Nikolai Kondrashov
<Nikolai.Kondrashov@redhat.com>
Fri, 30 Jan 2015 16:16:32 +0000
(18:16 +0200)
Remove an initialization of a variable, which is then overwritten, in
dhcp_get_option.
This fixes the following Clang warning:
freeradius-server-2.2.6/src/lib/dhcp.c:144:11: warning: Value stored to 'data' during its initialization is never read
src/lib/dhcp.c
patch
|
blob
|
history
diff --git
a/src/lib/dhcp.c
b/src/lib/dhcp.c
index
8a3c36d
..
0406480
100644
(file)
--- a/
src/lib/dhcp.c
+++ b/
src/lib/dhcp.c
@@
-141,7
+141,7
@@
static uint8_t *dhcp_get_option(dhcp_packet_t *packet, size_t packet_size,
int overload = 0;
int field = DHCP_OPTION_FIELD;
size_t where, size;
- uint8_t *data
= packet->options
;
+ uint8_t *data;
where = 0;
size = packet_size - offsetof(dhcp_packet_t, options);