Fossil SCM
Fix a bug in path.c reported by [forum:/forumpost/658487ff8e|forum post 658487ff8e].
Commit
da9aa4abf726a3e6e97e5a67e4e3bf0f8c77685cb1333ba16e445edfe4683ad6
Parent
2ff040c4387e1c5…
1 file changed
+1
+1
| --- src/path.c | ||
| +++ src/path.c | ||
| @@ -192,10 +192,11 @@ | ||
| 192 | 192 | path_reset(); |
| 193 | 193 | path.brCost = branchCost; |
| 194 | 194 | path.pStart = path_new_node(iFrom, 0, 0); |
| 195 | 195 | if( iTo==iFrom ){ |
| 196 | 196 | path.pEnd = path.pStart; |
| 197 | + path.pEnd->u.pTo = 0; | |
| 197 | 198 | return path.pStart; |
| 198 | 199 | } |
| 199 | 200 | if( oneWayOnly && directOnly ){ |
| 200 | 201 | db_prepare(&s, |
| 201 | 202 | "SELECT cid, 1 FROM plink WHERE pid=:pid AND isprim" |
| 202 | 203 |
| --- src/path.c | |
| +++ src/path.c | |
| @@ -192,10 +192,11 @@ | |
| 192 | path_reset(); |
| 193 | path.brCost = branchCost; |
| 194 | path.pStart = path_new_node(iFrom, 0, 0); |
| 195 | if( iTo==iFrom ){ |
| 196 | path.pEnd = path.pStart; |
| 197 | return path.pStart; |
| 198 | } |
| 199 | if( oneWayOnly && directOnly ){ |
| 200 | db_prepare(&s, |
| 201 | "SELECT cid, 1 FROM plink WHERE pid=:pid AND isprim" |
| 202 |
| --- src/path.c | |
| +++ src/path.c | |
| @@ -192,10 +192,11 @@ | |
| 192 | path_reset(); |
| 193 | path.brCost = branchCost; |
| 194 | path.pStart = path_new_node(iFrom, 0, 0); |
| 195 | if( iTo==iFrom ){ |
| 196 | path.pEnd = path.pStart; |
| 197 | path.pEnd->u.pTo = 0; |
| 198 | return path.pStart; |
| 199 | } |
| 200 | if( oneWayOnly && directOnly ){ |
| 201 | db_prepare(&s, |
| 202 | "SELECT cid, 1 FROM plink WHERE pid=:pid AND isprim" |
| 203 |