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 @@ -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 = CString :: new ( "url" ) . unwrap ( ) ;
171
+ let attr_url = b "url\0 " . as_ptr ( ) as * const gchar ;
172
172
let schema = schema ( ) ;
173
173
match action {
174
174
cargo_credential:: Action :: Get ( _) => {
@@ -177,7 +177,7 @@ mod linux {
177
177
& schema,
178
178
null_mut ( ) ,
179
179
& mut error,
180
- attr_url. as_ptr ( ) ,
180
+ attr_url,
181
181
index_url_c. as_ptr ( ) ,
182
182
null ( ) as * const gchar ,
183
183
) ;
@@ -217,7 +217,7 @@ mod linux {
217
217
token. as_ptr ( ) ,
218
218
null_mut ( ) ,
219
219
& mut error,
220
- attr_url. as_ptr ( ) ,
220
+ attr_url,
221
221
index_url_c. as_ptr ( ) ,
222
222
null ( ) as * const gchar ,
223
223
) ;
@@ -239,7 +239,7 @@ mod linux {
239
239
& schema,
240
240
null_mut ( ) ,
241
241
& mut error,
242
- attr_url. as_ptr ( ) ,
242
+ attr_url,
243
243
index_url_c. as_ptr ( ) ,
244
244
null ( ) as * const gchar ,
245
245
) ;
You can’t perform that action at this time.
0 commit comments