diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2016-03-05 19:18:07 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2016-03-05 19:18:07 +0000 |
commit | 5bcd892e61c20957144a1786050eaecd6a8ad94e (patch) | |
tree | 36ee205d83b0e684b78dc69ccfeb27bcf0521aea /testcode/testbound.c | |
parent | e24c5f9706c7df9bbd9a49f3a6d2dddb9e80b480 (diff) |
Diffstat (limited to 'testcode/testbound.c')
-rw-r--r-- | testcode/testbound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testcode/testbound.c b/testcode/testbound.c index d908150a017b..674b39ac8942 100644 --- a/testcode/testbound.c +++ b/testcode/testbound.c @@ -142,7 +142,7 @@ spool_auto_file(FILE* in, int* lineno, FILE* cfg, char* id) /* find filename for new file */ while(isspace((unsigned char)*id)) id++; - if(strlen(id)==0) + if(*id == '\0') fatal_exit("AUTROTRUST_FILE must have id, line %d", *lineno); id[strlen(id)-1]=0; /* remove newline */ fake_temp_file("_auto_", id, line, sizeof(line)); |