/[cvs]/ccvs/src/rcs.c
ViewVC logotype

Diff of /ccvs/src/rcs.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.352 by dprice, Wed Sep 7 22:56:23 2005 UTC revision 1.353 by dprice, Thu Sep 8 02:49:02 2005 UTC
# Line 277  RCS_parse (const char *file, const char Line 277  RCS_parse (const char *file, const char
277         in the cache.  */         in the cache.  */
278      rcsbuf_cache_close ();      rcsbuf_cache_close ();
279    
280      if ((rcsfile = locate_rcs (repos, file, &inattic)) == NULL)      if (!(rcsfile = locate_rcs (repos, file, &inattic)))
281      {      {
282          /* Handle the error cases */          /* Handle the error cases */
283      }      }
284      else if ((fp = CVS_FOPEN (rcsfile, FOPEN_BINARY_READ)) != NULL)      else if ((fp = CVS_FOPEN (rcsfile, FOPEN_BINARY_READ)))
285      {      {
286          rcs = RCS_parsercsfile_i(fp, rcsfile);          rcs = RCS_parsercsfile_i (fp, rcsfile);
287          if (rcs != NULL)          if (rcs)
288          {                {      
289              rcs->flags |= VALID;              rcs->flags |= VALID;
290              if ( inattic )              if (inattic)
291                  rcs->flags |= INATTIC;                  rcs->flags |= INATTIC;
292          }          }
293    
294          free ( rcsfile );          free (rcsfile);
295          retval = rcs;          retval = rcs;
296      }      }
297      else if (! existence_error (errno))      else if (!existence_error (errno))
298      {      {
299          error (0, errno, "cannot open %s", rcsfile);          error (0, errno, "cannot open `%s'", rcsfile);
300          free (rcsfile);          free (rcsfile);
301      }      }
302    

Legend:
Removed from v.1.352  
changed lines
  Added in v.1.353

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26