• Adam Wujek's avatar
    userspace/snmpd: make t_n_rows static in wrsTableTemplate.h · 843ac095
    Adam Wujek authored
    t_n_rows (n_rows before) has to be local for table. Having it global sometimes
    caused to print wrong number of rows in tables. This bug may even cause snmpd
    to crash.
    It was dependent on the call order of *_data_fill funtions.
    
    Change the n_rows into t_n_rows, since the usage of n_rows variable is common
    in the snmp code. By this avoid potential errors like variable overleaping
    problems.
    Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
    843ac095
Name
Last commit
Last update
binaries Loading commit data...
build Loading commit data...
configs Loading commit data...
doc Loading commit data...
hwinfo-sdb Loading commit data...
kernel Loading commit data...
patches Loading commit data...
robustness/coding Loading commit data...
scripts Loading commit data...
usb-loader Loading commit data...
userspace Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
README Loading commit data...