changed name of a local variable to avoid a later name collision

Tue, 13 Oct 2015 12:55:37 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 13 Oct 2015 12:55:37 +0200
changeset 157
8dccc3063e28
parent 156
4b3aecafd6be
child 158
33237261321e

changed name of a local variable to avoid a later name collision

libidav/davqlexec.c file | annotate | diff | comparison | revisions
--- a/libidav/davqlexec.c	Mon Oct 12 17:47:04 2015 +0200
+++ b/libidav/davqlexec.c	Tue Oct 13 12:55:37 2015 +0200
@@ -449,10 +449,10 @@
     
     UcxList *stack = NULL; // stack with DavResource* elements
     // initialize the stack with the requested resource
-    DavQLRes *r = ucx_mempool_malloc(mp, sizeof(DavQLRes));
-    r->resource = selroot;
-    r->depth = 0;
-    stack = ucx_list_prepend(stack, r);
+    DavQLRes *res = ucx_mempool_malloc(mp, sizeof(DavQLRes));
+    res->resource = selroot;
+    res->depth = 0;
+    stack = ucx_list_prepend(stack, res);
     
     // reuseable response buffer
     UcxBuffer *rpbuf = ucx_buffer_new(NULL, 4096, UCX_BUFFER_AUTOEXTEND);

mercurial