summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubhani Shaik <subhanis@qca.qualcomm.com>2015-06-04 12:10:24 -0700
committerAnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com>2015-06-05 17:51:41 +0530
commita83a212970df917533bd91481cba555734fe2e97 (patch)
treefa40457e3618cb6b78b09dc6a7a344afc19307d4
parentf76b84e83212b04b2a6bae0e9a976faeba87d59d (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.c2
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);