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

subversion/libsvn_subr/path.c:1259: possible bad if ?

From: David Binderman <dcb314_at_hotmail.com>
Date: Fri, 8 May 2015 07:18:50 +0000

Hello there,

[subversion/libsvn_subr/path.c:1259]: (warning) Char literal compared with pointer 'last_dot'. Did you intend to dereference it?

  if (last_dot && (last_dot + 1 != '\0'))

Maybe

  if (last_dot && (last_dot[ 1] != '\0'))

Regards

David Binderman

                                               
Received on 2015-05-08 09:20:26 CEST

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