summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/dlt_filetransfer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/dlt_filetransfer.c b/src/lib/dlt_filetransfer.c
index 3a4efc9..fd8c5e3 100644
--- a/src/lib/dlt_filetransfer.c
+++ b/src/lib/dlt_filetransfer.c
@@ -179,7 +179,7 @@ void getFileCreationDate2(const char *file, int *ok, char *date)
if (-1 == stat(file, &st)) {
*ok = 0;
- date = 0;
+ return;
}
*ok = 1;
@@ -259,7 +259,7 @@ void dlt_user_log_file_errorMessage(DltContext *fileContext, const char *filenam
DLT_STRING(filename));
}
- char fcreationdate[50];
+ char fcreationdate[50] = {0};
getFileCreationDate2(filename, &ok, fcreationdate);
if (!ok) {
@@ -326,7 +326,7 @@ int dlt_user_log_file_infoAbout(DltContext *fileContext, const char *filename)
DLT_STRING(filename));
}
- char creationdate[50];
+ char creationdate[50] = {0};
getFileCreationDate2(filename, &ok, creationdate);
if (!ok) {
@@ -475,7 +475,7 @@ int dlt_user_log_file_header_alias(DltContext *fileContext, const char *filename
DLT_STRING(filename));
}
- char fcreationdate[50];
+ char fcreationdate[50] = {0};
getFileCreationDate2(filename, &ok, fcreationdate);
if (!ok) {
@@ -536,7 +536,7 @@ int dlt_user_log_file_header(DltContext *fileContext, const char *filename)
DLT_STRING(filename));
}
- char fcreationdate[50];
+ char fcreationdate[50] = {0};
getFileCreationDate2(filename, &ok, fcreationdate);
if (!ok) {