[L4alpha-cvscommit] CVS: dite/src edit.c,1.33,1.34
Status: Beta
Brought to you by:
dpotts
|
From: Simon W. <sj...@us...> - 2003-01-24 06:57:10
|
Update of /cvsroot/l4alpha/dite/src
In directory sc8-pr-cvs1:/tmp/cvs-serv29959/src
Modified Files:
edit.c
Log Message:
Fixed small bug with --name (andrewb)
Index: edit.c
===================================================================
RCS file: /cvsroot/l4alpha/dite/src/edit.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** edit.c 6 Sep 2002 08:19:21 -0000 1.33
--- edit.c 24 Jan 2003 06:56:58 -0000 1.34
***************
*** 2,6 ****
* Project: EDIT --- Extended DIT
* Created: 12/07/2000 19:46:03 by Simon Winwood (sjw)
! * Last Modified: 06/09/2002 16:46:36 by Simon Winwood (sjw)
* Version info: $Revision$
* Description:
--- 2,6 ----
* Project: EDIT --- Extended DIT
* Created: 12/07/2000 19:46:03 by Simon Winwood (sjw)
! * Last Modified: 24/01/2003 17:51:04 by Simon Winwood (sjw)
* Version info: $Revision$
* Description:
***************
*** 18,21 ****
--- 18,24 ----
*
* $Log$
+ * Revision 1.34 2003/01/24 06:56:58 sjw_
+ * Fixed small bug with --name (andrewb)
+ *
* Revision 1.33 2002/09/06 08:19:21 sjw_
* Added N flag to opts
***************
*** 380,383 ****
--- 383,389 ----
return 1;
}
+
+ if(efile->ditname == NULL)
+ efile->ditname = efile->filename;
efile->size = file_size(fptr);
***************
*** 389,395 ****
efile->mmap = file_map(fptr, 0, efile->size, FALSE);
- if(efile->ditname == NULL)
- efile->ditname = efile->filename;
-
return 0;
}
--- 395,398 ----
***************
*** 534,537 ****
--- 537,541 ----
case 'N': /* name */
sources[num_sources].ditname = optarg;
+ break;
case 'x': /* exec flag */
|