Skip to content

Commit

Permalink
Fix $wireless_essid crashing conky if no argument provided.
Browse files Browse the repository at this point in the history
Conky wasn't parsing the argument of the variable as it should, thus wasn't allocating the `dev` member variable.

Also fix some documentation stuff.
  • Loading branch information
npyl committed Jul 12, 2018
1 parent 504d27c commit 800992d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
21 changes: 10 additions & 11 deletions doc/variables.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4771,7 +4771,7 @@
</command>
<option>(net)</option>
</term>
<listitem>Wireless access point MAC address (Linux only)
<listitem>Wireless access point MAC address
<para /></listitem>
</varlistentry>
<varlistentry>
Expand All @@ -4781,7 +4781,7 @@
</command>
<option>(net)</option>
</term>
<listitem>Wireless bitrate (ie 11 Mb/s) (Linux only)
<listitem>Wireless bitrate (ie 11 Mb/s)
<para /></listitem>
</varlistentry>
<varlistentry>
Expand All @@ -4791,7 +4791,7 @@
</command>
<option>(net)</option>
</term>
<listitem>WLAN channel on which device 'net' is listening (Linux only)
<listitem>WLAN channel on which device 'net' is listening
<para /></listitem>
</varlistentry>
<varlistentry>
Expand All @@ -4801,7 +4801,7 @@
</command>
<option>(net)</option>
</term>
<listitem>Wireless access point ESSID (Linux only)
<listitem>Wireless access point ESSID
<para /></listitem>
</varlistentry>
<varlistentry>
Expand All @@ -4811,7 +4811,7 @@
</command>
<option>(net)</option>
</term>
<listitem>Frequency on which device 'net' is listening (Linux only)
<listitem>Frequency on which device 'net' is listening
<para /></listitem>
</varlistentry>
<varlistentry>
Expand All @@ -4821,7 +4821,7 @@
</command>
<option>(height),(width) (net)</option>
</term>
<listitem>Wireless link quality bar (Linux only)
<listitem>Wireless link quality bar
<para /></listitem>
</varlistentry>
<varlistentry>
Expand All @@ -4831,7 +4831,7 @@
</command>
<option>(net)</option>
</term>
<listitem>Wireless link quality (Linux only)
<listitem>Wireless link quality
<para /></listitem>
</varlistentry>
<varlistentry>
Expand All @@ -4841,7 +4841,7 @@
</command>
<option>(net)</option>
</term>
<listitem>Wireless link quality maximum value (Linux only)
<listitem>Wireless link quality maximum value
<para /></listitem>
</varlistentry>
<varlistentry>
Expand All @@ -4851,7 +4851,7 @@
</command>
<option>(net)</option>
</term>
<listitem>Wireless link quality in percents (Linux only)
<listitem>Wireless link quality in percents
<para /></listitem>
</varlistentry>
<varlistentry>
Expand All @@ -4861,8 +4861,7 @@
</command>
<option>(net)</option>
</term>
<listitem>Wireless mode (Managed/Ad-Hoc/Master) (Linux
only)
<listitem>Wireless mode (Managed/Ad-Hoc/Master)
<para /></listitem>
</varlistentry>
<varlistentry>
Expand Down
1 change: 1 addition & 0 deletions src/core.cc
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ struct text_object *construct_text_object(char *s, const char *arg, long line,
#ifdef BUILD_WLAN
END OBJ(wireless_essid, &update_net_stats) obj->data.opaque =
get_net_stat(arg, obj, free_at_crash);
parse_net_stat_arg(obj, arg, free_at_crash);
obj->callbacks.print = &print_wireless_essid;
END OBJ(wireless_channel, &update_net_stats)
parse_net_stat_arg(obj, arg, free_at_crash);
Expand Down

0 comments on commit 800992d

Please sign in to comment.