Skip to content

Commit c51daf9

Browse files
committed
cmd/startlog: initialize enum to non zero
Problem: The enum POST_FLAG_FLUSH was not initialized, therefore it defaults to 0. This means when a user passes a flag of "0", it ends up being equal to POST_FLAG_FLUSH, leading to undesired behavior. Initialize POST_FLAG_FLUSH to 1. Fixes #6168
1 parent 81b6ef3 commit c51daf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/builtin/startlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static const char *startlog_key;
3131
static int startlog_version;
3232

3333
enum post_flags {
34-
POST_FLAG_FLUSH,
34+
POST_FLAG_FLUSH = 1,
3535
};
3636

3737
static void post_startlog_event (flux_t *h,

0 commit comments

Comments
 (0)