Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.18
 
1.19
 
MAIN:ragge:20041231112125
 
cpp.c
_>219219         exfail = 0;
 220220         incs.dir = ".";
 221221         if (argc) {
<> 222+                char *p;
  223+
222224                 if (freopen(argv[0], "r", stdin) == NULL) {
 223225                         fprintf(stderr, "Can't open %s", argv[0]);
 224226                         exit(8);
 225227                 }
<>226 -                if ((idir = strrchr(argv[0], '/')) != NULL) {
  228+                p = strdup(argv[0]);
  229+                if ((idir = strrchr(p, '/')) != NULL) {
227230                         *idir = 0;
<>228 -                        incs.dir = argv[0];
  231+                        incs.dir = p;
<_229232                 }
 230233         }
 231234         incs.next = NULL;
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-09-01 09:42 +0200