Commit 4f054423 authored by Michael Beck's avatar Michael Beck
Browse files

- removed useless strlen()

[r20933]
parent 745b8566
......@@ -895,10 +895,10 @@ void be_main(FILE *file_handle, const char *cup_name)
ir_timer_t *t = NULL;
/* The user specified another config file to read. do that now. */
if(strlen(config_file) > 0) {
if (config_file[0] != '\0') {
FILE *f;
if((f = fopen(config_file, "rt")) != NULL) {
if ((f = fopen(config_file, "rt")) != NULL) {
lc_opt_from_file(config_file, f, NULL);
fclose(f);
}
......
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