Don't mix declarations and code - it's not legal C90.
Change-Id: I1a89c729255560d596e4d7701468cca3e9000357 Reviewed-on: https://code.wireshark.org/review/6655 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
c0fd5392af
commit
ab8a13dde8
|
@ -1770,8 +1770,9 @@ decode_zcl_ota_curr_time(gchar *s, guint32 value)
|
|||
g_snprintf(s, ITEM_LABEL_LENGTH, "Now");
|
||||
}
|
||||
else {
|
||||
gchar *tmp;
|
||||
value += ZBEE_ZCL_NSTIME_UTC_OFFSET;
|
||||
gchar *tmp = abs_time_secs_to_str(NULL, value, ABSOLUTE_TIME_LOCAL, 1);
|
||||
tmp = abs_time_secs_to_str(NULL, value, ABSOLUTE_TIME_LOCAL, 1);
|
||||
g_snprintf(s, ITEM_LABEL_LENGTH, "%s", tmp);
|
||||
wmem_free(NULL, tmp);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue