Merge branch 'master' into sensitivity

This commit is contained in:
jlo62 2023-11-07 15:31:45 +01:00 committed by GitHub
commit 2fef636f74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -166,7 +166,7 @@ int swaynag_parse_options(int argc, char **argv, struct swaynag *swaynag,
fprintf(stderr, "Missing action for button %s\n", optarg);
return EXIT_FAILURE;
}
struct swaynag_button *button = calloc(sizeof(struct swaynag_button), 1);
struct swaynag_button *button = calloc(1, sizeof(struct swaynag_button));
if (!button) {
perror("calloc");
return EXIT_FAILURE;