Code

routeros: fix a small build error pointed out by clang
authorMarc Fournier <marc.fournier@camptocamp.com>
Wed, 5 Aug 2015 16:05:02 +0000 (18:05 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Wed, 5 Aug 2015 16:05:02 +0000 (18:05 +0200)
commit4cfce925daf8e81c96c5bca630674f5e1f824067
treecddaff424277c7df6e9779e5074de850152297a6
parent57e055803ca05d6aebfcce3132f609e07ccdd5fc
routeros: fix a small build error pointed out by clang

routeros.c:334:35: error: 'memset' call operates on objects of type 'cr_data_t' (aka 'struct cr_data_s') while the size is based on a different type 'cr_data_t *' (aka 'struct cr_data_s *') [-Werror,-Wsizeof-pointer-memaccess]
  memset (router_data, 0, sizeof (router_data));
          ~~~~~~~~~~~             ^~~~~~~~~~~
routeros.c:334:35: note: did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)?
  memset (router_data, 0, sizeof (router_data));
                                  ^~~~~~~~~~~
src/routeros.c