diff options
Diffstat (limited to 'src/topology/save.c')
-rw-r--r-- | src/topology/save.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/topology/save.c b/src/topology/save.c index 0498911f..c6eabc49 100644 --- a/src/topology/save.c +++ b/src/topology/save.c @@ -577,6 +577,9 @@ int snd_tplg_save(snd_tplg_t *tplg, char **dst, int flags) if (err < 0) goto _err; + if (*dst == NULL) + return -EINVAL; + if (flags & SND_TPLG_SAVE_NOCHECK) return 0; |