Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SoftEtherVPN/SoftEtherVPN_Stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiyuu Nobori <da.git@softether.co.jp>2016-11-27 11:25:03 +0300
committerGitHub <noreply@github.com>2016-11-27 11:25:03 +0300
commit5cae447c79119509bdf2ccdd64bee839bf2d3013 (patch)
tree9381127b64a4ad86ef6df4861a9c63f7437ff3d7 /src/Mayaqua/FileIO.c
parent36591082c457f0c8c1f8813f0fd5716ec7b51776 (diff)
parentd1ea47eb66e87a25d821a81af780ca30c0963929 (diff)
Merge pull request #229 from chipitsine/master
cppcheck issues
Diffstat (limited to 'src/Mayaqua/FileIO.c')
-rw-r--r--src/Mayaqua/FileIO.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mayaqua/FileIO.c b/src/Mayaqua/FileIO.c
index 49fbec95..02abafb0 100644
--- a/src/Mayaqua/FileIO.c
+++ b/src/Mayaqua/FileIO.c
@@ -380,13 +380,13 @@ void ZipAddFileStart(ZIP_PACKER *p, char *name, UINT size, UINT64 dt, UINT attri
// Add data to the file
UINT ZipAddFileData(ZIP_PACKER *p, void *data, UINT pos, UINT len)
{
- UINT total_size = p->CurrentFile->CurrentSize + len;
UINT ret;
// Validate arguments
if (p == NULL)
{
return 0;
}
+ UINT total_size = p->CurrentFile->CurrentSize + len;
if (total_size > p->CurrentFile->Size)
{
return 0;