AutoZone Inc. reported higher-than-expected earnings for the second quarter of its fiscal year, but the stock market's reaction was cautious.