Fossil SCM
Fix another faulty though harmless memset() initialization.
Commit
336e1355b927fe34991368af8b35b27a7a52dbc9
Parent
ed005e302de418d…
1 file changed
+1
-1
+1
-1
| --- src/path.c | ||
| +++ src/path.c | ||
| @@ -89,11 +89,11 @@ | ||
| 89 | 89 | p = path.pAll; |
| 90 | 90 | path.pAll = p->pAll; |
| 91 | 91 | fossil_free(p); |
| 92 | 92 | } |
| 93 | 93 | bag_clear(&path.seen); |
| 94 | - memset(&path, 0, sizeof(&path)); | |
| 94 | + memset(&path, 0, sizeof(path)); | |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /* |
| 98 | 98 | ** Construct the path from path.pStart to path.pEnd in the u.pTo fields. |
| 99 | 99 | */ |
| 100 | 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 |
| --- 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 |