[email protected] writes:

> This is an automated email from the git hooks/post-receive script. It was
> generated because a ref change was pushed to the repository containing
> the project "Tarantool -- an efficient key/value data store".
>
> The branch core-cfg_get has been created
>         at  193b809592e3540e05ac34d64fd3f0c642c4722c (commit)
>
>
>  
> +     if (role == cfg_get) {
> +             tarantool_cfg_iterator_t *i;
> +             char *key, *value;
> +
> +             i = tarantool_cfg_iterator_init();
> +             while ((key = tarantool_cfg_iterator_next(i, &cfg, &value)) != 
> NULL) {
> +                     if (strcmp(key, cfg_paramname) == 0) {
> +                             printf("%s\n", value);
> +                             free(value);
> +
> +                             return 0;
> +                     }
> +
> +                     free(value);
> +             }
> +
> +             return 0;

I think it is better return 1 here. Like other shell utilites do.

> +     }
> +

_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to