string.c: Handle invalid loglevels gracefully.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 27 Dec 2015 23:03:38 +0000 (23:03 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 10 Jan 2016 12:00:01 +0000 (13:00 +0100)
commit0f15a55530553b2acf397fc137caa0c7f3e8b131
tree61fc424089c3c9e3ff0565ff323f28dd97529e7a
parent5da8c2e0d33f25579c804c3856cd8716486baee5
string.c: Handle invalid loglevels gracefully.

Public functions should always return a proper error code on
failure. Returning -1 is asking for trouble.
error.h
string.c