ccanlint: handle weird directories.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 1 Mar 2011 05:31:20 +0000 (16:01 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 1 Mar 2011 05:31:20 +0000 (16:01 +1030)
commite169f82bbe459c6cfb80d5180f3ceb61a66a52ed
treea7c23dbc5f8aa7ffb886d375fdea34e364fd12c1
parent62bbea8e5feea7b716c7bc8b41444080a24abc95
ccanlint: handle weird directories.

David Gibson reports (and I confirmed) that running ccanlint in /tmp
causes an very uninformative segv.  Fix that, and add a more useful message,
as well as delaying recursing until we're confident there's code around.
tools/ccanlint/file_analysis.c