summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2014-04-29 22:44:12 +0200
committerAleksander Morgado <aleksander@aleksander.es>2014-05-27 19:06:25 +0200
commit8f8231fead42825847613a7ce7b0be2d79f19b92 (patch)
treecd916b93878d52dfaef3b1692e774d8d21e82a23
parentc44897c2777fe80d3791daf167534a8099ef3f6f (diff)
downloadlibqmi-8f8231fead42825847613a7ce7b0be2d79f19b92.tar.gz
qmicli: fix wrong array reference cutnpaste bug
Signed-off-by: Bjørn Mork <bjorn@mork.no>
-rw-r--r--src/qmicli/qmicli-nas.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qmicli/qmicli-nas.c b/src/qmicli/qmicli-nas.c
index b067b5ed..6cfbd5cd 100644
--- a/src/qmicli/qmicli-nas.c
+++ b/src/qmicli/qmicli-nas.c
@@ -2370,7 +2370,7 @@ get_cell_location_info_ready (QmiClientNas *client,
for (i = 0; i < array2->len; i++) {
QmiMessageNasGetCellLocationInfoOutputUmtsInfoGeran_nbr_cellElement *element;
- element = &g_array_index (array, QmiMessageNasGetCellLocationInfoOutputUmtsInfoGeran_nbr_cellElement, i);
+ element = &g_array_index (array2, QmiMessageNasGetCellLocationInfoOutputUmtsInfoGeran_nbr_cellElement, i);
g_print ("\tGERAN NBR Cell [%u]:\n"
"\tAbsolute RFChannel Number: '%" G_GUINT16_FORMAT"'\n"
"\tNetwork Color Code: '%u'\n"
@@ -2494,7 +2494,7 @@ get_cell_location_info_ready (QmiClientNas *client,
for (j = 0; j < cell_array->len; j++) {
QmiMessageNasGetCellLocationInfoOutputInterfrequencyLteInfoFrequencyElementCellElement *cell;
- cell = &g_array_index (array, QmiMessageNasGetCellLocationInfoOutputInterfrequencyLteInfoFrequencyElementCellElement, j);
+ cell = &g_array_index (cell_array, QmiMessageNasGetCellLocationInfoOutputInterfrequencyLteInfoFrequencyElementCellElement, j);
g_print ("\t\tCell [%u]:\n"
"\t\t\tPhysical Cell ID: '%" G_GUINT16_FORMAT"'\n"
"\t\t\tRSRQ: '%" G_GINT16_FORMAT"'\n"
@@ -2545,7 +2545,7 @@ get_cell_location_info_ready (QmiClientNas *client,
for (j = 0; j < cell_array->len; j++) {
QmiMessageNasGetCellLocationInfoOutputLteInfoNeighboringGsmFrequencyElementCellElement *cell;
- cell = &g_array_index (array, QmiMessageNasGetCellLocationInfoOutputLteInfoNeighboringGsmFrequencyElementCellElement, j);
+ cell = &g_array_index (cell_array, QmiMessageNasGetCellLocationInfoOutputLteInfoNeighboringGsmFrequencyElementCellElement, j);
g_print ("\t\tCell [%u]:\n"
"\t\t\tAbsolute RFChannel Number: '%" G_GUINT16_FORMAT"'\n"
"\t\t\tBand Is 1900: '%s'\n"
@@ -2597,7 +2597,7 @@ get_cell_location_info_ready (QmiClientNas *client,
for (j = 0; j < cell_array->len; j++) {
QmiMessageNasGetCellLocationInfoOutputLteInfoNeighboringWcdmaFrequencyElementCellElement *cell;
- cell = &g_array_index (array, QmiMessageNasGetCellLocationInfoOutputLteInfoNeighboringWcdmaFrequencyElementCellElement, j);
+ cell = &g_array_index (cell_array, QmiMessageNasGetCellLocationInfoOutputLteInfoNeighboringWcdmaFrequencyElementCellElement, j);
g_print ("\t\tCell [%u]:\n"
"\t\t\tPrimary Scrambling Code: '%" G_GUINT16_FORMAT"'\n"
"\t\t\tCPICH RSCP: '%" G_GINT16_FORMAT"'\n"