summaryrefslogtreecommitdiff
path: root/lib/err.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/err.c')
-rw-r--r--lib/err.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/err.c b/lib/err.c
index ec72a29..695de72 100644
--- a/lib/err.c
+++ b/lib/err.c
@@ -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)