diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2024-04-16 13:13:43 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2024-04-16 13:13:43 +0000 |
commit | 47f08d628d75469e2c62901f7b81fe3bf0787b0f (patch) | |
tree | 505f4c072b471b676b3e5edcf26156c2fe726a71 /src/libstddjb/gol.c | |
parent | eff310d272f9e3915c1d5fa93f635ec8ebccaed6 (diff) | |
download | skalibs-47f08d628d75469e2c62901f7b81fe3bf0787b0f.tar.xz |
Try to make the damn thing build
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libstddjb/gol.c')
-rw-r--r-- | src/libstddjb/gol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstddjb/gol.c b/src/libstddjb/gol.c index e61d7f3..4b5167c 100644 --- a/src/libstddjb/gol.c +++ b/src/libstddjb/gol.c @@ -38,7 +38,7 @@ int gol (char const *const *argv, unsigned int argc, gol_bool const *b, unsigned for (; j < an ; j++) if (*p == a[j].so) break ; if (j < an) { - if (p[1]) ar[a[j].i] == p + 1 ; + if (p[1]) ar[a[j].i] = p + 1 ; else if (i+1 < argc && strcmp(argv[i+1], "--")) ar[a[j].i] = argv[++i] ; break ; } |