From f6e0f50b9bf55231726d84a5a43c68cab61c5875 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 13 Oct 2014 15:00:27 +0200 Subject: [PATCH] profile: don't abort when class does not exist --- src/profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/profile.c b/src/profile.c index 19a88ff2..aaa99313 100644 --- a/src/profile.c +++ b/src/profile.c @@ -74,7 +74,7 @@ profile_create pb = profile_class_find(s); if (pb == NULL) { tvherror("profile", "wrong class %s!", s); - abort(); + return NULL; } pro = pb->build(); if (pro == NULL) {