提交 0a67ca73 编写于 作者: W WangFengTu

fix bug of logout

Signed-off-by: NWangFengTu <wangfengtu@huawei.com>
上级 40d6a50c
...@@ -449,9 +449,9 @@ static void delete_auth(registry_auths *auths, char *host) ...@@ -449,9 +449,9 @@ static void delete_auth(registry_auths *auths, char *host)
} }
// Move to empty position // Move to empty position
auths->auths->keys[count] = auths->auths->keys[i]; auths->auths->keys[count] = auths->auths->keys[i];
auths->auths->keys[count] = NULL; auths->auths->keys[i] = NULL;
auths->auths->values[count] = auths->auths->values[i]; auths->auths->values[count] = auths->auths->values[i];
auths->auths->values[count] = NULL; auths->auths->values[i] = NULL;
count++; count++;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册