diff options
| author | Subhani Shaik <subhanis@qca.qualcomm.com> | 2015-06-04 12:10:24 -0700 |
|---|---|---|
| committer | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2015-06-05 17:51:41 +0530 |
| commit | a83a212970df917533bd91481cba555734fe2e97 (patch) | |
| tree | fa40457e3618cb6b78b09dc6a7a344afc19307d4 | |
| parent | f76b84e83212b04b2a6bae0e9a976faeba87d59d (diff) | |
qcacld: Fix invalid file pointer issue.
The file pointer if not true is not handled correctly. Fixing the
issue determined by KW.
Change-Id: I86e109557a03acb548df4347074115588edd4002
CRs-Fixed: 848720
| -rw-r--r-- | tools/fwdebuglog/parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/fwdebuglog/parser.c b/tools/fwdebuglog/parser.c index a98364b78794..a73bfc97701f 100644 --- a/tools/fwdebuglog/parser.c +++ b/tools/fwdebuglog/parser.c @@ -93,6 +93,8 @@ diag_print_legacy_logs(const char *buf) record++; if (log_out) fprintf(log_out, "%s\n", buf); + else + return; if (record == max_records) { record = 0; fseek(log_out, record, SEEK_SET); |
