[svn-commits] seanbright: editline/trunk r154 - /editline/trunk/src/el.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Mar 19 10:07:16 CDT 2010


Author: seanbright
Date: Fri Mar 19 10:07:11 2010
New Revision: 154

URL: http://svnview.digium.com/svn/thirdparty?view=rev&rev=154
Log:
Remove some unused/unnecessary code.

Modified:
    editline/trunk/src/el.c

Modified: editline/trunk/src/el.c
URL: http://svnview.digium.com/svn/thirdparty/editline/trunk/src/el.c?view=diff&rev=154&r1=153&r2=154
==============================================================================
--- editline/trunk/src/el.c (original)
+++ editline/trunk/src/el.c Fri Mar 19 10:07:11 2010
@@ -499,7 +499,6 @@
 	char *ptr;
 	char path[MAXPATHLEN];
 
-	fp = NULL;
 	if (fname == NULL) {
 		static const char elpath[] = "/.editrc";
 
@@ -515,8 +514,7 @@
 			return (-1);
 		fname = path;
 	}
-	if (fp == NULL)
-		fp = fopen(fname, "r");
+	fp = fopen(fname, "r");
 	if (fp == NULL)
 		return (-1);
 




More information about the svn-commits mailing list