c-lib: added missing strdup-null checks.
This commit checks after each strdup() call if the call was successful.
If not, the function that calls strdup() returns an error.
This requires, that the return value of several functions has to be
changed from void to int.
Signed-off-by:
Martin Wührer <martin.wuehrer@artech.at>
Showing
Please
register
or
sign in
to comment