win32 typo fix

Message ID 20200519011453.GJ1088@bubble.grove.modra.org
State New
Headers show
Series
  • win32 typo fix
Related show

Commit Message

PR 25713
	* bfdio.c (_bfd_real_fopen): Typo fix.


-- 
Alan Modra
Australia Development Lab, IBM

Comments

Hi Alan,

> -      for (i = 0, fullpath[i]; i++)

> +      for (i = 0; fullpath[i]; i++)


Doh!  Thanks for the catch.

Cheers
  Nick

Patch

diff --git a/bfd/bfdio.c b/bfd/bfdio.c
index bba8d896d3..0133b76064 100644
--- a/bfd/bfdio.c
+++ b/bfd/bfdio.c
@@ -130,7 +130,7 @@  _bfd_real_fopen (const char *filename, const char *modes)
       strcat (fullpath, filename);
 
       /* Convert any UNIX style path separators into the DOS form.  */
-      for (i = 0, fullpath[i]; i++)
+      for (i = 0; fullpath[i]; i++)
         {
           if (IS_UNIX_DIR_SEPARATOR (fullpath[i]))
 	    fullpath[i] = '\\';