[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

uninitialized var

From: SteveKing <steveking_at_gmx.ch>
Date: 2003-03-23 09:55:28 CET

Hi,

I have a small request. In the file libsvn_wc/status.c, function
svn_wc_statuses(), the variable const svn_wc_entry_t *entry
is _not_ initialized to NULL like in the function svn_wc_status.
I think it should be initialized to NULL like this:

const svn_wc_entry_t *entry = NULL;

Also, 13 lines below the line
const svn_wc_entry_t *parent_entry;
also should be initialized to NULL like this:
const svn_wc_entry_t *parent_entry = NULL;

That's because the docs (doxygen) say that for
svn_wc_status_t, the entry could be NULL if not
under version control, but it's _not_ right now.

Stefan
Received on Sun Mar 23 09:57:01 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.