From 29a0d9f066ad101988bb8ad69028aba34cc6dd81 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 11 Aug 2016 16:15:14 -0500 Subject: [PATCH] wscutil: Simplify uuid extractor --- src/wscutil.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/wscutil.c b/src/wscutil.c index 4f547a76..8c0dcdd7 100644 --- a/src/wscutil.c +++ b/src/wscutil.c @@ -401,13 +401,10 @@ static bool extract_wsc_state(struct wsc_attr_iter *iter, void *data) static bool extract_uuid(struct wsc_attr_iter *iter, void *data) { - uint8_t *out = data; - if (wsc_attr_iter_get_length(iter) != 16) return false; - memcpy(out, wsc_attr_iter_get_data(iter), 16); - + memcpy(data, wsc_attr_iter_get_data(iter), 16); return true; }