Fossil SCM

Fix another faulty though harmless memset() initialization.

drh 2012-07-27 00:26 trunk
Commit 336e1355b927fe34991368af8b35b27a7a52dbc9
1 file changed +1 -1
+1 -1
--- src/path.c
+++ src/path.c
@@ -89,11 +89,11 @@
8989
p = path.pAll;
9090
path.pAll = p->pAll;
9191
fossil_free(p);
9292
}
9393
bag_clear(&path.seen);
94
- memset(&path, 0, sizeof(&path));
94
+ memset(&path, 0, sizeof(path));
9595
}
9696
9797
/*
9898
** Construct the path from path.pStart to path.pEnd in the u.pTo fields.
9999
*/
100100
--- src/path.c
+++ src/path.c
@@ -89,11 +89,11 @@
89 p = path.pAll;
90 path.pAll = p->pAll;
91 fossil_free(p);
92 }
93 bag_clear(&path.seen);
94 memset(&path, 0, sizeof(&path));
95 }
96
97 /*
98 ** Construct the path from path.pStart to path.pEnd in the u.pTo fields.
99 */
100
--- src/path.c
+++ src/path.c
@@ -89,11 +89,11 @@
89 p = path.pAll;
90 path.pAll = p->pAll;
91 fossil_free(p);
92 }
93 bag_clear(&path.seen);
94 memset(&path, 0, sizeof(path));
95 }
96
97 /*
98 ** Construct the path from path.pStart to path.pEnd in the u.pTo fields.
99 */
100

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button