summaryrefslogtreecommitdiff
path: root/lib/err.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2010-10-02 21:43:41 +0200
committerLinus Nordberg <linus@nordu.net>2010-10-02 21:43:41 +0200
commitbdc1d15eb080569aeb41bf0e110c75ba4772d300 (patch)
tree39364551f09b4444ac6de2b3f375484a262e56ea /lib/err.c
parentbe4b786700ad03de5226951c043fefb345c0df4c (diff)
WIP.
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)