blob: 3e627f8ef7ebcb08a1734413969a1d143f6e38ff (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
$FreeBSD$
--- modules/usrloc/udomain.c
+++ modules/usrloc/udomain.c
@@ -288,7 +288,7 @@
}
flags = VAL_BITMAP(ROW_VALUES(row) + 8);
ua.s = (char*)VAL_STRING(ROW_VALUES(row) + 9);
- ua.len = strlen(ua.s);
+ ua.len = (ua.s != NULL) ? strlen(ua.s) : 0;
if (use_domain) {
domain = (char*)VAL_STRING(ROW_VALUES(row) + 10);
|