Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Sonar prefers nullptr.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 10 Mar 2021 09:40:29 +0000 (10:40 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 10 Mar 2021 09:40:29 +0000 (10:40 +0100)
teshsuite/mc/random-bug/random-bug.cpp

index 733b084..2374cae 100644 (file)
@@ -31,7 +31,7 @@ static void app()
       abort();
   } else if (behavior == Behavior::SEGV) {
 #ifndef __clang_analyzer__
-    int* A = 0;
+    int* A = nullptr;
     if (x == 3 && y == 4)
       *A = 1;
 #endif