fixes wrong memset v1.2

Tue, 26 Mar 2019 18:02:40 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Tue, 26 Mar 2019 18:02:40 +0100
branch
v1.2
changeset 594
23608c2e1de9
parent 593
3d02420c4392
child 595
f4e770298165

fixes wrong memset

libidav/davqlexec.c file | annotate | diff | comparison | revisions
--- a/libidav/davqlexec.c	Sat Mar 09 16:29:59 2019 +0100
+++ b/libidav/davqlexec.c	Tue Mar 26 18:02:40 2019 +0100
@@ -745,7 +745,7 @@
      
     int numcmd = 1;
     DavQLCmd cmd;
-    memset(&cmd, sizeof(DavQLCmd), 0);
+    memset(&cmd, 0, sizeof(DavQLCmd));
     davqlerror_t error;
     
     sstr_t src = expr->srctext;

mercurial