about summary refs log tree commit diff stats
path: root/src/resource.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/resource.c')
-rw-r--r--src/resource.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resource.c b/src/resource.c
index e8443d58..74cb5755 100644
--- a/src/resource.c
+++ b/src/resource.c
@@ -30,6 +30,7 @@
 Resource * resource_new(const char * const name, const char * const show,
     const char * const status, const int priority, const char * const caps_str)
 {
+    assert(g_strcmp0(show, "offline") != 0);
     assert(name != NULL);
     Resource *new_resource = malloc(sizeof(struct resource_t));
     new_resource->name = strdup(name);