diff options
author | Thomas White <taw@physics.org> | 2014-12-10 16:21:13 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-12-10 16:21:13 +0100 |
commit | 6f28aa507cdf41715992acdef3d4854b9ab32704 (patch) | |
tree | 29c24425f55cbc2f9ae8d47f3d6b5c7f1c4808f9 /libcrystfel | |
parent | b6414d926523226ff45261438e01de3745ac0fcc (diff) |
Avoid strlen()
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/events.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/events.c b/libcrystfel/src/events.c index de43cacd..03562fb5 100644 --- a/libcrystfel/src/events.c +++ b/libcrystfel/src/events.c @@ -295,7 +295,7 @@ char *get_event_string(struct event *ev) } else { ret_string = strdup("/"); - ret_string_len = strlen(ret_string); + ret_string_len = 1; } |