X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=scrotwm.c;h=788f839adb51f5311e38c7096391bded96d283b3;hb=8ae086989f3c71ef8fd3cf43dc0fda8c09e76493;hp=072e71f3061ddf5dfecd5500a479c3d3a7713867;hpb=d857737a4a3e5189365469686c876354c4cecf5f;p=spectrwm.git diff --git a/scrotwm.c b/scrotwm.c index 072e71f..788f839 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -5509,12 +5509,12 @@ conf_load(char *filename, int keymapping) goto out; } - if(asprintf(&optsub, "%.*s", wordlen, cp) == + if (asprintf(&optsub, "%.*s", wordlen, cp) == -1) { warnx("%s: line %zd: unable to allocate" "memory for selector", filename, lineno); - return (1); + goto out; } } cp += wordlen;