mirror of
https://github.com/znc/znc.git
synced 2026-05-08 06:14:40 +02:00
Use nullptr (#816)
Changes applied by 'clang-modernize -use-nullptr [...]'
This commit is contained in:
+1
-1
@@ -270,7 +270,7 @@ bool CUtils::GetInput(const CString& sPrompt, CString& sRet, const CString& sDef
|
||||
PrintPrompt(sPrompt + sExtra);
|
||||
char szBuf[1024];
|
||||
memset(szBuf, 0, 1024);
|
||||
if (fgets(szBuf, 1024, stdin) == NULL) {
|
||||
if (fgets(szBuf, 1024, stdin) == nullptr) {
|
||||
// Reading failed (Error? EOF?)
|
||||
PrintError("Error while reading from stdin. Exiting...");
|
||||
exit(-1);
|
||||
|
||||
Reference in New Issue
Block a user