jed-users mailing list

[2006 Date Index] [2006 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Problems with evalfile (wjed)


SANGOI DINO LEONARDO wrote:
-----Original Message-----
Uhmmm... I don't know how the patch could came wrong... however, the problem
is missing braces for if (_stat() < 0). The problem is that if _stat()
returns an error, but the path does not start with two slashes, instead of
returning 0 (meaning 'file not found'), it continues execution and returns
1. So Jed thinks the file 'defaults.sl' exists, and tries to open it,
failing...
So the 'return 0', now inside 'if (ourname[0] == SLASH_CHAR && ourname[1] ==
SLASH_CHAR)' should be outside it, but inside 'if (_stat(...) < 0)'.


This patch fixed it. Thank you.

The previous patch didn't move the 'return 0' statement.
Should we be worried about the diff command ;) ?

Marko

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2006 date index] [2006 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]