This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Avoid calling stat with empty name in relocate_gdb_directory
- From: Tom Tromey <tromey at redhat dot com>
- To: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: <gdb-patches at sourceware dot org>
- Date: Thu, 03 Jan 2013 13:59:24 -0700
- Subject: Re: [RFA] Avoid calling stat with empty name in relocate_gdb_directory
- References: <29503.7594777115$1354726985@news.gmane.org> <87sj7ks7g6.fsf@fleche.redhat.com> <434.327257289802$1354751122@news.gmane.org> <87d2ynxc6t.fsf@fleche.redhat.com> <26262.2907328934$1355473042@news.gmane.org>
>>>>> "Pierre" == Pierre Muller <pierre.muller@ics-cnrs.unistra.fr> writes:
Pierre> I still think that the approach of testing if *dir == '\0'
Pierre> is safer...
That is ok by me.
Tom