aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/frame.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/frame.c b/src/frame.c
index 3e207cd..bc0f744 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -189,7 +189,11 @@ static void parse_options(struct frame *fr, const char *opth, StyleSheet *ss)
int i;
size_t len;
size_t start;
- char *opt = strdup(opth);
+ char *opt;
+
+ if ( opth == NULL ) return;
+
+ opt = strdup(opth);
len = strlen(opt);
start = 0;