This makes it possible for static analyzers such as clang's one to understand that strings_list_add() cannot dereference a NULL pointer in the following code: if (!newptr) exitApp("Out of Memory"); newptr->string = strdup(string); Signed-off-by: Nicolas Iooss <nicolas.iooss@xxxxxxx> --- restorecond/restorecond.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restorecond/restorecond.h b/restorecond/restorecond.h index a6be584c84a5..db7e50f72d2d 100644 --- a/restorecond/restorecond.h +++ b/restorecond/restorecond.h @@ -33,7 +33,7 @@ extern int run_as_user; extern int start(void); extern int server(int, const char *watch_file); -extern void exitApp(const char *msg); +extern void exitApp(const char *msg) __attribute__((__noreturn__)); extern void read_config(int fd, const char *watch_file); extern int watch(int fd, const char *watch_file); -- 2.11.1 _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.