]> git.proxmox.com Git - mirror_frr.git/commit - lib/vty.h
lib: make qobj NULL-safe/aware
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 7 Dec 2016 11:16:05 +0000 (12:16 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 9 Dec 2016 16:36:25 +0000 (17:36 +0100)
commit3c5070bec0a64918ae87b0992221b8e6c98ff136
tree5056722639e4fe8361835715436ed17c454382fe
parentf6eacff4386610eea9fe67ceba7e50f8d87fad4a
lib: make qobj NULL-safe/aware

reserve qobj ID 0 for a NULL pointer.  (No change is needed for lookups
since looking up 0 will simply fail and return NULL.)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/qobj.c
lib/qobj.h
lib/vty.h