]> code.citadel.org Git - citadel.git/blobdiff - libcitadel/lib/wildfire.c
Bumped version numbers to 8.11 for upcoming release
[citadel.git] / libcitadel / lib / wildfire.c
index 623c3b7c23a25d40b1b75293b081b8e1eed108e7..7d4499e3c036938e3056e4c4f226350eeee2cf26 100644 (file)
@@ -157,9 +157,13 @@ static int addr2lineBacktrace(StrBuf *Function,
        pche = strchr(pch, ':');
        FlushStrBuf(FileName);
        StrBufAppendBufPlain(FileName, pch, pche - pch, 0);
-       pche++;
-       *FunctionLine = atoi(pche);
-
+       if (pche != NULL)
+       {
+               pche++;
+               *FunctionLine = atoi(pche);
+       }
+       else 
+               *FunctionLine = 0;
        return 1;
 }