From b60d1fbe8e49bfa04ab4f63d8131cc4c9040d25e Mon Sep 17 00:00:00 2001 From: drh <> Date: Wed, 13 Apr 2022 18:32:04 +0000 Subject: Make the sqlite3TreeViewSrcList() routine a no-op if called with a NULL SrcList object. FossilOrigin-Name: 185d2720e7775e3060a1647353c10aada435244db53a0732ee786788a6ecae3f --- src/treeview.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/treeview.c') diff --git a/src/treeview.c b/src/treeview.c index 459316190..0a3f94267 100644 --- a/src/treeview.c +++ b/src/treeview.c @@ -133,6 +133,7 @@ void sqlite3TreeViewWith(TreeView *pView, const With *pWith, u8 moreToFollow){ */ void sqlite3TreeViewSrcList(TreeView *pView, const SrcList *pSrc){ int i; + if( pSrc==0 ) return; for(i=0; inSrc; i++){ const SrcItem *pItem = &pSrc->a[i]; StrAccum x; -- cgit v1.2.3