diff options
author | Linus Nordberg <linus@nordu.net> | 2010-10-02 21:43:41 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2010-10-02 21:43:41 +0200 |
commit | bdc1d15eb080569aeb41bf0e110c75ba4772d300 (patch) | |
tree | 39364551f09b4444ac6de2b3f375484a262e56ea /lib/err.c | |
parent | be4b786700ad03de5226951c043fefb345c0df4c (diff) |
WIP.
Diffstat (limited to 'lib/err.c')
-rw-r--r-- | lib/err.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,8 +3,8 @@ #include <stdio.h> #include <string.h> #include <assert.h> -#include <radsec/libradsec.h> -#include <radsec/libradsec-impl.h> +#include <radsec/radsec.h> +#include <radsec/radsec-impl.h> const char *_errtxt[] = { "SUCCESS", /* 0 RSE_OK */ @@ -52,7 +52,7 @@ _err_new (unsigned int code, const char *file, int line, const char *fmt, va_lis sizeof(err->buf)); n = strlen (err->buf); } - if (n >= 0) + if (n >= 0 && file) { char *sep = strrchr (file, '/'); if (sep) |