Skip to content

Commit

Permalink
Use 0 instead of nullptr that only exists in new C++ compilers.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed May 30, 2017
1 parent 254936c commit e2d44ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdCns/XrdCnsSsi.cc
Expand Up @@ -61,7 +61,7 @@ struct XrdCnsSsiFRec
char Info[XrdCnsLogRec::FixDLen];

void Updt(const char *nInfo) {
if(nInfo != nullptr) strncpy(Info, nInfo, sizeof(Info));}
if(nInfo != 0) strncpy(Info, nInfo, sizeof(Info));}

XrdCnsSsiFRec(const char *Data) {if (!Data) Data = XrdCnsLogRec::iArg;
strncpy(Info, Data, sizeof(Info));
Expand Down

0 comments on commit e2d44ff

Please sign in to comment.