File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
credential/cargo-credential-libsecret/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -111,11 +111,11 @@ mod linux {
111
111
attr_type : SecretSchemaAttributeType :: String ,
112
112
} ; 32 ] ;
113
113
attributes[ 0 ] = SecretSchemaAttribute {
114
- name : b "url\0 ". as_ptr ( ) as * const gchar ,
114
+ name : c "url". as_ptr ( ) as * const gchar ,
115
115
attr_type : SecretSchemaAttributeType :: String ,
116
116
} ;
117
117
SecretSchema {
118
- name : b "org.rust-lang.cargo.registry\0 ". as_ptr ( ) as * const gchar ,
118
+ name : c "org.rust-lang.cargo.registry". as_ptr ( ) as * const gchar ,
119
119
flags : SecretSchemaFlags :: None ,
120
120
attributes,
121
121
reserved : 0 ,
@@ -168,7 +168,7 @@ mod linux {
168
168
169
169
let index_url_c = CString :: new ( registry. index_url ) . unwrap ( ) ;
170
170
let mut error: * mut GError = null_mut ( ) ;
171
- let attr_url = b "url\0 ". as_ptr ( ) as * const gchar ;
171
+ let attr_url = c "url". as_ptr ( ) as * const gchar ;
172
172
let schema = schema ( ) ;
173
173
match action {
174
174
cargo_credential:: Action :: Get ( _) => unsafe {
@@ -210,7 +210,7 @@ mod linux {
210
210
unsafe {
211
211
secret_password_store_sync (
212
212
& schema,
213
- b "default\0 ". as_ptr ( ) as * const gchar ,
213
+ c "default". as_ptr ( ) as * const gchar ,
214
214
label. as_ptr ( ) ,
215
215
token. as_ptr ( ) ,
216
216
null_mut ( ) ,
You can’t perform that action at this time.
0 commit comments