Avoid false static analyzer warning on impossible snprintf() error path

Explicitly check that snprintf() return value is not negative to silence
a static analyzer. This call cannot fail, but it is simpler to do this
than try to figure out other ways of getting rid of false warnings.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
1 file changed