Diff
Not logged in

Differences From:

File src/content.c part of check-in [f763b84198] - Fix a bug introduced by recent optimization efforts. by drh on 2008-03-10 16:46:40. [view]

To:

File src/content.c part of check-in [4e2bd38577] - Fix an assertion fault: detect when content_get() is called with an invalid artifact id and return 0. by drh on 2008-03-14 12:43:25. [view]

@@ -166,8 +166,9 @@
   static Bag inProcess;
 
   assert( g.repositoryOpen );
   blob_zero(pBlob);
+  if( rid==0 ) return 0;
 
   /* Early out if we know the content is not available */
   if( bag_find(&contentCache.missing, rid) ){
     CONTENT_TRACE(("%*smiss from cache: %d\n",