Fossil SCM

Fix a bug in path.c reported by [forum:/forumpost/658487ff8e|forum post 658487ff8e].

drh 2025-10-23 10:17 trunk
Commit da9aa4abf726a3e6e97e5a67e4e3bf0f8c77685cb1333ba16e445edfe4683ad6
1 file changed +1
+1
--- src/path.c
+++ src/path.c
@@ -192,10 +192,11 @@
192192
path_reset();
193193
path.brCost = branchCost;
194194
path.pStart = path_new_node(iFrom, 0, 0);
195195
if( iTo==iFrom ){
196196
path.pEnd = path.pStart;
197
+ path.pEnd->u.pTo = 0;
197198
return path.pStart;
198199
}
199200
if( oneWayOnly && directOnly ){
200201
db_prepare(&s,
201202
"SELECT cid, 1 FROM plink WHERE pid=:pid AND isprim"
202203
--- 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

Keyboard Shortcuts

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