fixes wrong memset

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

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Tue, 26 Mar 2019 18:02:40 +0100
changeset 538
a7402e35ad87
parent 537
abfc943f09ed
child 539
8deb52292c99

fixes wrong memset

libidav/davqlexec.c file | annotate | diff | comparison | revisions
--- a/libidav/davqlexec.c	Tue Mar 26 17:59:45 2019 +0100
+++ b/libidav/davqlexec.c	Tue Mar 26 18:02:40 2019 +0100
@@ -754,7 +754,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