Commit f9c86267 authored by Bob Halley's avatar Bob Halley
Browse files

lint

parent 71385229
......@@ -147,7 +147,7 @@ lwres_strdup(lwres_context_t *ctx, const char *str)
{
char *p;
REQUIRE(*str != NULL);
REQUIRE(str != NULL);
REQUIRE(strlen(str) > 0);
p = CTXMALLOC(strlen(str) + 1);
......@@ -480,6 +480,7 @@ lwres_conf_parse(lwres_context_t *ctx, const char *filename,
REQUIRE(strlen(filename) > 0);
REQUIRE(confdata != NULL);
rval = LWRES_R_FAILURE; /* Make compiler happy. */
errno = 0;
if ((fp = fopen(filename, "r")) == NULL)
return (LWRES_R_FAILURE);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment