E17: avoid seg fault when the string passed to strlen() is NULL

Patch by Maxime Villard (rustyBSD)


SVN revision: 77016
This commit is contained in:
Vincent Torri 2012-09-22 12:07:49 +00:00
parent 7f93d7305b
commit d5e3385fd9
1 changed files with 2 additions and 0 deletions

View File

@ -986,6 +986,8 @@ _e_fm_op_update_progress_report(int percent, int eta, double elapsed, off_t done
int size, src_len, dst_len;
int ret = 0;
if (!dst) return;
src_len = strlen(src);
dst_len = strlen(dst);