]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/MUON/OfflineInterface/AliHLTMUONRecHitsSource.cxx
Removing compilation warnings.
[u/mrichter/AliRoot.git] / HLT / MUON / OfflineInterface / AliHLTMUONRecHitsSource.cxx
index 580e99ba896ac433dcb11c3cf8e2c222d83b3eb0..a65e47cb568a0c60de582e8ffd67adb40aab97e5 100644 (file)
@@ -172,9 +172,9 @@ int AliHLTMUONRecHitsSource::DoInit(int argc, const char** argv)
                                HLTError("Expected a positive number after -firstevent.");
                                return -EINVAL;
                        }
-                       char* end = "";
+                       char* end = NULL;
                        long num = strtol(argv[i], &end, 0);
-                       if (*end != '\0' or num < 0) // Check if the conversion is OK.
+                       if ((end != NULL and *end != '\0') or num < 0) // Check if the conversion is OK.
                        {
                                HLTError(
                                        "Expected a positive number after -firstevent"