[xdebug-dev] xdebug xdebug/usefulstuff.c - Fixed opening files (such as the remote log) on Windows.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Sun, 8 Jul 2007 22:04:02 +0200

Date: Sun Jul 8 22:04:02 CEST 2007
User: Derick Rethans
Directory: xdebug

Log Message:
[1.00]
- Fixed opening files (such as the remote log) on Windows.

Modified files:
           xdebug/usefulstuff.c (version: 1.44)

[FILE: /xdebug/usefulstuff.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- xdebug/usefulstuff.c:1.43 Sun Jun 10 19:21:09 2007 GMT
+++ xdebug/usefulstuff.c Sun Jul 08 18:04:01 2007 GMT
@@ -480,18 +480,20 @@
 FILE *xdebug_fopen(char *fname, char *mode, char *extension, char **new_fname)
 {
         char *tmp_fname;
+ FILE *ret;
 
         if (extension) {
                 tmp_fname = xdebug_sprintf("%s.%s", fname, extension);
         } else {
                 tmp_fname = xdstrdup(fname);
         }
+ ret = fopen(tmp_fname, mode);
         if (new_fname) {
                 *new_fname = tmp_fname;
         } else {
                 xdfree(tmp_fname);
         }
- return fopen(tmp_fname, mode);
+ return ret;
 }
 #endif
 
Received on Sun Jul 08 2007 - 22:04:06 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST