Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159688542
D26885.id78539.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
850 B
Referenced Files
None
Subscribers
None
D26885.id78539.diff
View Options
Index: usr.sbin/jls/jls.c
===================================================================
--- usr.sbin/jls/jls.c
+++ usr.sbin/jls/jls.c
@@ -505,17 +505,13 @@
{
int qc;
char *p = value;
- char *param_name_value;
/* An empty string needs quoting. */
if (!*p) {
- asprintf(¶m_name_value, "{k:%s}{d:%s/\"\"}", name, name);
- xo_emit(param_name_value);
- free(param_name_value);
+ xo_emit("{ea:/%s}{da:/\"\"}", name, value, name);
return;
}
- asprintf(¶m_name_value, "{:%s/%%s}", name);
/*
* The value will be surrounded by quotes if it contains spaces
* or quotes.
@@ -528,9 +524,7 @@
if (qc && pflags & PRINT_QUOTED)
xo_emit("{P:/%c}", qc);
- xo_emit(param_name_value, value);
-
- free(param_name_value);
+ xo_emit("{a:/%s}", name, value);
if (qc && pflags & PRINT_QUOTED)
xo_emit("{P:/%c}", qc);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jun 18, 2:38 AM (11 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34025747
Default Alt Text
D26885.id78539.diff (850 B)
Attached To
Mode
D26885: Fix bad libbxo format strings in jls
Attached
Detach File
Event Timeline
Log In to Comment